ScreenScaffoldDefaults

object ScreenScaffoldDefaults


Contains the default values used by ScreenScaffold

Summary

Public functions

PaddingValues
contentPaddingWithEdgeButton(
    edgeButtonSize: EdgeButtonSize,
    start: Dp,
    top: Dp,
    end: Dp,
    extraBottom: Dp
)

Creates padding values with extra bottom padding for an EdgeButton.

Public functions

contentPaddingWithEdgeButton

fun contentPaddingWithEdgeButton(
    edgeButtonSize: EdgeButtonSize,
    start: Dp = 0.dp,
    top: Dp = 0.dp,
    end: Dp = 0.dp,
    extraBottom: Dp = 0.dp
): PaddingValues

Creates padding values with extra bottom padding for an EdgeButton.

Parameters
edgeButtonSize: EdgeButtonSize

The size of the EdgeButton.

start: Dp = 0.dp

The padding on the start side of the content.

top: Dp = 0.dp

The padding on the top side of the content.

end: Dp = 0.dp

The padding on the end side of the content.

extraBottom: Dp = 0.dp

Additional padding to be added to the bottom padding calculated from the edge button size.

Returns
PaddingValues

A PaddingValues object with the calculated padding.