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
)

This function is deprecated. Use the combination of a new contentPadding parameter on the ScreenScaffold to get back the padding values inside of the content lambda.

Public properties

Dp

The minimum space between EdgeButton and list content in ScreenScaffold.

Dp

The default space between EdgeButton and list content in ScreenScaffold.

PaddingValues

Default contentPadding added to the ScreenScaffold.

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.

Public properties

EdgeButtonMinSpacing

Added in 1.0.0-alpha31
val EdgeButtonMinSpacingDp

The minimum space between EdgeButton and list content in ScreenScaffold.

EdgeButtonSpacing

Added in 1.0.0-alpha31
val EdgeButtonSpacingDp

The default space between EdgeButton and list content in ScreenScaffold.

contentPadding

Added in 1.0.0-alpha31
val contentPaddingPaddingValues

Default contentPadding added to the ScreenScaffold.