You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your example project, you are applying the bottom (safe area) padding twice:
once via the PaddingValues received from the Scaffold - applied on the Column
second time via the .imePadding() modifier - applied on the Box
On 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.
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):
![Screenshot 2024-06-22 at 00 01 52](https://private-user-images.githubusercontent.com/2178959/341901395-bca100e0-08bd-47e4-a958-b8020bf3c1a8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTM5MzIsIm5iZiI6MTcyNTU5MzYzMiwicGF0aCI6Ii8yMTc4OTU5LzM0MTkwMTM5NS1iY2ExMDBlMC0wOGJkLTQ3ZTQtYTk1OC1iODAyMGJmM2MxYTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDZUMDMzMzUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzU2MGJjMTk4NDRhM2I4NmNmZjdlY2RhYzMwNzI4ZjlhZjdlZGI0MDJlZjU1MzA2ZjYzNzkwYmRlZDQ4YjdmNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.92bSkSMkOw0ZtMbK7CaYwhpR3rOqnYaaQG8mMp7E_5k)
iOS (actual):
![IMG_7393](https://private-user-images.githubusercontent.com/2178959/341901461-1ffa77e5-6dd8-402a-8863-03fb8f3f078c.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTM5MzIsIm5iZiI6MTcyNTU5MzYzMiwicGF0aCI6Ii8yMTc4OTU5LzM0MTkwMTQ2MS0xZmZhNzdlNS02ZGQ4LTQwMmEtODg2My0wM2ZiOGYzZjA3OGMuUE5HP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDZUMDMzMzUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzE0NjAxZjBjN2MyNGIyZDkzNzhlMDRiYzc3MmM0NWJkZjhhNDE0NzY2ZmVhODQwOWI4OTk5Yzk0YzliZmMzNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.eYjDk72n3fyOeQH3qloKJltcXEYkYmq8-PQmfz1wSdI)
The text was updated successfully, but these errors were encountered: