Closed SebastianAigner closed 2 months ago
Reproducer attached here: KotlinProject 29.zip
In your example project, you are applying the bottom (safe area) padding twice:
PaddingValues
received from the Scaffold - applied on the Column.imePadding()
modifier - applied on the BoxOn android it works properly, because you did not enable edgeToEdge in your activity. (enableEdgeToEdge()
). Without edgeToEdge, the imePadding/padding(it) has no effect.
I suggest to enable edgeToEdge for android, and remove the imePadding modifier.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
I have code like this:
...that is nested inside a
Scaffold
. Seems to me like the padding isn't taking into account the surroundingScaffold
on iOS, but it is on Android.Android (expected):
iOS (actual):