Is it possible to have Scaffold inside other Scaffold?
I have weird issues with paddings in this case and was curious maybe it wasn’t designed to be nested.
z
Zach Klippenstein (he/him) [MOD]
02/21/2024, 4:31 PM
Did you propagate the contentPadding?
n
Nick Kleban
02/21/2024, 4:48 PM
I’m using Voyager TabNavigator со I can’t propagate contentPadding from external Scaffold into inner Scaffold.
My situation:
external Scaffold contains NavigationBar
internal Scaffold contains TopAppBar
When I use paddingValues as in my example below, my internal Scaffold has extra padding on top of it and content inside of it has the same top padding (which roughly equals to the TopAppBar size), like if the external Scaffold somehow detected presence of TopAppBar inside of the internal Scaffold. I hope it makes sense.
External: