MaterialExpansionTileData class final
Material-specific configuration for a platform expansion tile.
Maps to properties of ExpansionTile on Android.
Constructors
-
MaterialExpansionTileData({Key? widgetKey, Widget? title, Widget? child, ExpansibleController? controller, ValueChanged<
bool> ? onExpansionChanged, List<Widget> ? children, Widget? leading, Widget? subtitle, Widget? trailing, bool showTrailingIcon = kDefaultShowTrailingIcon, bool initiallyExpanded = kDefaultInitiallyExpanded, bool maintainState = kDefaultMaintainState, EdgeInsetsGeometry? tilePadding, CrossAxisAlignment expandedCrossAxisAlignment = kDefaultExpandedCrossAxisAlignment, Alignment expandedAlignment = kDefaultExpandedAlignment, EdgeInsetsGeometry? childrenPadding, Color? backgroundColor, Color? collapsedBackgroundColor, Color? textColor, Color? collapsedTextColor, Color? iconColor, Color? collapsedIconColor, ShapeBorder? shape, ShapeBorder? collapsedShape, Clip? clipBehavior, ListTileControlAffinity? controlAffinity, Color? splashColor, VisualDensity? visualDensity, double? minTileHeight, bool enableFeedback = kDefaultEnableFeedback, bool enabled = kDefaultEnabled, AnimationStyle? expansionAnimationStyle, bool internalAddSemanticForOnTap = kDefaultInternalAddSemanticForOnTap}) -
Creates Material-specific expansion tile configuration.
const
Properties
- backgroundColor → Color?
-
Background color when expanded.
final
- child → Widget?
-
The widget to display when the tile is expanded.
finalinherited
-
children
→ List<
Widget> ? -
Child widgets shown when expanded (mutually exclusive with
child).final - childrenPadding → EdgeInsetsGeometry?
-
Padding around the expanded children.
final
- clipBehavior → Clip?
-
Clip behavior for the tile content.
final
- collapsedBackgroundColor → Color?
-
Background color when collapsed.
final
- collapsedIconColor → Color?
-
Icon color when collapsed.
final
- collapsedShape → ShapeBorder?
-
Shape of the tile when collapsed.
final
- collapsedTextColor → Color?
-
Text color when collapsed.
final
- controlAffinity → ListTileControlAffinity?
-
Position of the expand/collapse control.
final
- controller → ExpansibleController?
-
A controller to manage the expansion state.
finalinherited
- enabled → bool
-
Whether the tile is enabled.
final
- enableFeedback → bool
-
Whether to enable feedback (e.g., haptic) on tap.
final
- expandedAlignment → Alignment
-
Alignment of the expanded children.
final
- expandedCrossAxisAlignment → CrossAxisAlignment
-
Cross-axis alignment of the expanded children.
final
- expansionAnimationStyle → AnimationStyle?
-
Animation style for the expansion transition.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconColor → Color?
-
Icon color when expanded.
final
- initiallyExpanded → bool
-
Whether the tile starts in the expanded state.
final
- internalAddSemanticForOnTap → bool
-
Whether to add semantics for the on-tap action internally.
final
- leading → Widget?
-
Leading widget before the title.
final
- maintainState → bool
-
Whether the children are kept in the widget tree when collapsed.
final
- minTileHeight → double?
-
Minimum height of the tile.
final
-
onExpansionChanged
→ ValueChanged<
bool> ? -
Callback when the expansion state changes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ShapeBorder?
-
Shape of the tile when expanded.
final
- showTrailingIcon → bool
-
Whether to show the trailing icon.
final
- splashColor → Color?
-
Splash color for the tile.
final
- subtitle → Widget?
-
Subtitle widget below the title.
final
- textColor → Color?
-
Text color when expanded.
final
- tilePadding → EdgeInsetsGeometry?
-
Padding around the tile header.
final
- title → Widget?
-
The primary content of the tile.
finalinherited
- trailing → Widget?
-
Trailing widget (typically an expand/collapse icon).
final
- visualDensity → VisualDensity?
-
Visual density of the tile.
final
- widgetKey → Key?
-
A key to identify the widget.
finalinherited
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
Constants
- kDefaultEnabled → const bool
- Default value for enabled.
- kDefaultEnableFeedback → const bool
- Default value for enableFeedback.
- kDefaultExpandedAlignment → const Alignment
- Default value for expandedAlignment.
- kDefaultExpandedCrossAxisAlignment → const CrossAxisAlignment
- Default value for expandedCrossAxisAlignment.
- kDefaultInitiallyExpanded → const bool
- Default value for initiallyExpanded.
- kDefaultInternalAddSemanticForOnTap → const bool
- Default value for internalAddSemanticForOnTap.
- kDefaultMaintainState → const bool
- Default value for maintainState.
- kDefaultShowTrailingIcon → const bool
- Default value for showTrailingIcon.