Class

ModalBottomSheetValue

Possible values of ModalBottomSheetState.

Source set: Common
public enum class ModalBottomSheetValue {
    /** The bottom sheet is not visible. */
    Hidden,

    /** The bottom sheet is visible at full height. */
    Expanded,

    /**
     * The bottom sheet is partially visible at 50% of the screen height. This state is only enabled
     * if the height of the bottom sheet is more than 50% of the screen height.
     */
    HalfExpanded,
}

Possible values of ModalBottomSheetState.

Members

Hidden

Source set: Common
Hidden

The bottom sheet is not visible.

Expanded

Source set: Common
Expanded

The bottom sheet is visible at full height.

HalfExpanded

Source set: Common
HalfExpanded

The bottom sheet is partially visible at 50% of the screen height. This state is only enabled if the height of the bottom sheet is more than 50% of the screen height.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: