BottomSheet Events
The BottomSheet widget contains the following events:
onCollapsed Event
This event is called when you need to collapse a BottomSheet from its peek height.
Syntax
Example
Platform Availability
- Android
onDismiss Event
This event is called when you need to dismiss a BottomSheet from the screen.
Syntax
Example
Platform Availability
- Android
onDraggingStarted Event
This event is called when you need to start dragging a BottomSheet to an Expanded or Collapsed state.
Syntax
Example
Platform Availability
- Android
onExpanded Event
This event is called when a BottomSheet reaches its fully expanded state.
Syntax
Example
Platform Availability
- Android
onSettled Event
This event is called when a BottomSheet is at peek height, is expanded, or is dismissed.
Syntax
Example
Platform Availability
- Android
onShow Event
This event is called when you need a BottomSheet to be displayed on the screen.
Syntax
Example
Platform Availability
- Android
onSliding Event
This event is called when a BottomSheet slides in/out of view.
Syntax
Example
Platform Availability
- Android