Yamila Gammeri
07/10/2020, 1:02 AMnickbutcher
07/10/2020, 6:12 AMInnerPadding
that Scaffold
passes to bodyContent
? Like this https://github.com/android/compose-samples/blob/master/JetNews/app/src/main/java/com/example/jetnews/ui/home/HomeScreen.kt#L99Yamila Gammeri
07/10/2020, 8:36 AMZach Klippenstein (he/him) [MOD]
07/10/2020, 12:58 PMnickbutcher
07/10/2020, 1:00 PMmatvei
07/10/2020, 1:07 PMit
and hiding lambda param for you. Instead, it might say to you that you have a param, so it will be easier to notice.
The other solution I had in mind and even prototyped is to have LazyItems / scroller inside Scaffold. It makes all these kinds of problems disappear, but it scales poorly for now, unfortunatellyZach Klippenstein (he/him) [MOD]
07/10/2020, 1:12 PM@CheckResult
for lambda params that would warn if you don't use them could be helpful here.matvei
07/10/2020, 1:14 PMZach Klippenstein (he/him) [MOD]
07/10/2020, 1:25 PMmatvei
07/10/2020, 1:34 PMinnerpadding
, and when you decide to add cutoff, you need to change other parts as well (pass innerPadding
). This might lead to even more problems. So there're tradeoffs to be made.
Ideally, I would like to just handle this automatically all the time regardless of hiding, cutouts or translucency and avoid this innerPadding
param 🙂 But for now it appears very hard to solve without loosing scalability and composability of scaffold slotsmatvei
07/10/2020, 1:40 PMScrollableColumn(innerPadding = innerPadding)
which will land soon
https://android-review.googlesource.com/c/platform/frameworks/support/+/1355660/8/ui/ui-material/samples/src/main/java/androidx/ui/material/samples/ScaffoldSamples.ktTimo Drick
07/11/2020, 8:08 AM