BottomSheetConfig class

Configuration options for a bottom sheet.

It specifies the default barrier color, fullscreen mode, and draggable behavior.

Constructors

BottomSheetConfig({int defaultBarrierColor = 0x80000000, bool defaultFullscreen = false, bool defaultUseSafeArea = false, bool defaultDraggable = true, bool defaultShowDragHandle = false})
Decorate a bottom sheet or simple bottomsheet with a BottomSheetConfig.
const

Properties

defaultBarrierColor int
The default color of the barrier that appears behind the bottom sheet. This is a 32 bit integer value in the format of 0xAARRGGBB.
final
defaultDraggable bool
Whether the bottom sheet can be dragged by the user.
final
defaultFullscreen bool
Whether the bottom sheet should be displayed in fullscreen mode. If set to true, the bottom sheet will take up the entire screen. If set to false, the bottom sheet will be displayed at the bottom third(-ish) of the screen.
final
defaultShowDragHandle bool
Whether the bottom sheet should show a drag handle.
final
defaultUseSafeArea bool
Whether the bottom sheet should ignore or use the safe area and take up the entire screen. This is most likely used in combination with defaultFullscreen.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited