cutout Padding
inline fun Modifier.cutoutPadding(start: Boolean = true, top: Boolean = true, end: Boolean = true, bottom: Boolean = true): Modifier
Content copied to clipboard
Selectively apply additional space which matches the width/height of any display cutout present on the respective edges of the screen.
Parameters
start
Whether to apply padding to the start edge, which matches the display cutout 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 display cutout 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 display cutout 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 display cutout height (if present) at the bottom edge of the screen. Defaults to true.