⌂
›
Reference
›
ExpansionTile
ExpansionTile
ExpansionTile control. Build it with the expansion_tile helper.
Example
expansion_tile(
title: text("Title"),
subtitle: text("Subtitle"),
leading: icon("menu"),
trailing: icon("chevron_right"),
on_change: ->(event) {}
)
Properties
adaptive— Adapts to the platform (Material/Cupertino) when true.affinityanimation_style— Animation style.bgcolor— Background color.clip_behavior— How content overflowing the bounds is clipped.collapsed_bgcolor— Collapsed background color.collapsed_icon_color— Collapsed icon color.collapsed_shapecollapsed_text_color— Collapsed text color.controls— The list of child controls.controls_padding— Controls padding.denseenable_feedback— Plays touch feedback (sound/haptic) on interaction.expandedexpanded_alignment— Expanded alignment.expanded_cross_axis_alignment— Expanded cross axis alignment.icon_color— Color of the icon.leading— Control placed before the main content (e.g. an icon or avatar).maintain_statemin_tile_height— Min tile height.shape— Shape/border of the control.show_trailing_icon— Show trailing icon.subtitle— The control shown as the secondary line below the title.text_color— Text color.tile_padding— Tile padding.title— The control shown as the title.trailing— Control placed after the main content.visual_density— Compactness of the control's layout.
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_change— Fired when the value changes.on_size_change— Fired when the control's size changes.
Reference
- Family:
materials - Widget type:
expansiontile - Helper:
expansion_tile