Alex
06/27/2022, 4:20 PMsystemBarsPadding()
,
is there a way to get the height of the system bars in dp
instead of applying the padding directly?MR3Y
06/27/2022, 4:31 PMWindowInsets.systemBars
?Ji Sungbin
06/27/2022, 5:55 PMval NavigationBarHeightDp
@Composable
get() = with(LocalDensity.current) {
WindowInsets.systemBars.getBottom(this).toDp()
}
val StatusBarHeightDp
@Composable
get() = with(LocalDensity.current) {
WindowInsets.systemBars.getTop(this).toDp()
}
Colton Idle
06/28/2022, 3:40 AMAlex
06/28/2022, 7:11 AMMarcin Wisniowski
06/30/2022, 3:56 PMJi Sungbin
06/30/2022, 4:04 PM