Skip to content

Conversation

@SPodjasek
Copy link
Contributor

Currently CupertinoPageScaffold doesn't use viewInsets to pad content as Material Scaffold does.

You can see actual master behavior below and fixed version next to it.

master fix
broken fixed

Repository for above PoC app: https://github.com/SPodjasek/flutter_scaffold_poc

@xster
Copy link
Member

xster commented Aug 22, 2018

Thanks for your contribution. My comments are keep the bottom padding consistent with topPadding. Define a local variable and use it in the 2 places.

Also the scaffold shouldn't prevent its child from drawing under the home bar on iPhone X etc. Don't add the MediaQuery.padding.bottom to the scaffold padding.

@SPodjasek
Copy link
Contributor Author

I've just made this PR properly in a separate branch, so this got closed. I'll open a new one including your suggestions.
Regarding the addition of MediaQuery.padding.bottom, should I also modify current test with new value so it'll pass? (it failed in test/cupertino/scaffold_test.dart:116)

@xster
Copy link
Member

xster commented Aug 22, 2018

I meant we shouldn't add MediaQuery.padding.bottom to the padding of the scaffold's child. Imagine the child is a ListView with a black background, the list items would scroll in from above the home bar and there'd be a white gap at the bottom of the black screen.

@SPodjasek
Copy link
Contributor Author

I've just re-opened this as #20929.
I guess this should be implemented in a way similar to material's Scaffold, but sadly that's beyond my flutter knowledge for now ;(

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants