⌂
›
Reference
›
ExpansionPanel
ExpansionPanel
ExpansionPanel control. Build it with the expansion_panel helper.
Example
expansion_panel(
content: text("ExpansionPanel"),
bgcolor: :surface_container_high,
expand: true,
width: 240,
on_animation_end: ->(event) {}
)
Properties
adaptive— Adapts to the platform (Material/Cupertino) when true.bgcolor— Background color.can_tap_headercontent— The single child control rendered inside this control.expandedheaderhighlight_color— Highlight color.splash_color— Splash color.
Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).
Events
on_animation_end— Fired when an animation completes.on_size_change— Fired when the control's size changes.
Reference
- Family:
materials - Widget type:
expansionpanel - Helper:
expansion_panel