⌂
›
Reference
›
CupertinoBottomSheet
CupertinoBottomSheet
CupertinoBottomSheet control. Build it with the cupertino_bottom_sheet helper.
Example
cupertino_bottom_sheet(
content: text("CupertinoBottomSheet"),
bgcolor: :surface_container_high,
open: true,
expand: true,
on_dismiss: ->(event) {}
)
Properties
adaptive— Adapts to the platform (Material/Cupertino) when true.bgcolor— Background color.content— The single child control rendered inside this control.modalopen— Whether the control (dialog/sheet/menu) is open.padding— Inner spacing between the border and the content.
Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).
Events
on_dismiss— Fired when the control is dismissed.
Reference
- Family:
cupertinos - Widget type:
cupertinobottomsheet - Helper:
cupertino_bottom_sheet