systemBarsPadding

inline fun Modifier.systemBarsPadding(enabled: Boolean = true): Modifier

Selectively apply additional space which matches the width/height of any system bars present on the respective edges of the screen.

Parameters

enabled

Whether to apply padding using the system bars dimensions on the respective edges. Defaults to true.

inline fun Modifier.systemBarsPadding(start: Boolean = true, top: Boolean = true, end: Boolean = true, bottom: Boolean = true): Modifier

Selectively apply additional space which matches the width/height of any system bars present on the respective edges of the screen.

Parameters

start

Whether to apply padding to the start edge, which matches the system bars width (if present) on the start edge of the screen. Defaults to true.

top

Whether to apply padding to the top edge, which matches the system bars height (if present) at the top edge of the screen. Defaults to true.

end

Whether to apply padding to the end edge, which matches the system bars width (if present) on the end edge of the screen. Defaults to true.

bottom

Whether to apply padding to the bottom edge, which matches the system bars height (if present) at the bottom edge of the screen. Defaults to true.