New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested Scaffolds redundantly move contents up when there's a keyboard #7036
Comments
Yeah, we need to consume the padding in the scaffold. |
Probably we should also make sure we handle the status bar. |
cc @cbracken I think we did this, right? |
Running Flutter 1.0.0 and SDK 28.0.3, I still see this bug. Using |
@Heasummn is there a specific reason you need to nest |
I have repeated logic/ui that uses a FAB and general content, but I would like the App Bar to be seperate from that logic. If there's another way to get a FAB without a scaffold, I would definitely use that instead. |
@Heasummn I'd suggest to ask support questions in one of the other channels listed at http://flutter.io/support . |
Nested scaffolds are necessary. Consider an app that has a bottom navigation bar, and each tab has has a different app bar (with different actions, for example). An example is described in detail in this blog article. |
Perhaps the whole concept of a scaffold is broken, as this widget tries to do too many things: managing model popups, involved in navigation, etc. If nested scaffolds are not possible, we need Scaffold to be composed of multiple, reusable widgets. |
@aryzhov that was changed recently to make nested Scaffolds work. Try |
@aryzhov feel free to build your own widget that does exactly what you need instead of using provided ones. |
See also #26259 |
As of 1.1.8, nested scaffolds appear to be working but |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Scaffolds indiscriminately apply the
MediaQuery.of(context).padding
, so if you nest them they double up on trying to get out of the way of keyboards.They should probably put a MediaQuery around their body themselves that removes the padding that they handle.
(A workaround in the meantime is to tell your inner scaffold not to
resizeToAvoidBottomPadding
.)The text was updated successfully, but these errors were encountered: