I have a PageView in my app homepage and I want:
The 2 solutions I imagined are:
So, I was wondering, it works, but is it "correct" syntactically to have nested Scaffolds?
Go here: https://api.flutter.dev/flutter/material/Scaffold-class.html
There is a section named Troubleshooting and inside it, you will find this:
Nested Scaffolds
The Scaffold was designed to be the single top level container for a MaterialApp and it's typically not necessary to nest scaffolds. For example in a tabbed UI, where the bottomNavigationBar is a TabBar and the body is a TabBarView, you might be tempted to make each tab bar view a scaffold with a differently titled AppBar. It would be better to add a listener to the TabController that updates the AppBar.