CustomExpansionTile constructor
const
CustomExpansionTile({
- Widget? title,
- Key? key,
- Widget? leading,
- Widget? subtitle,
- ValueChanged<
bool> ? onExpansionChanged, - List<
Widget> children = const <Widget>[], - Widget? trailing,
- bool showTrailingIcon = true,
- bool initiallyExpanded = false,
- bool maintainState = false,
- EdgeInsetsGeometry? tilePadding,
- CrossAxisAlignment? expandedCrossAxisAlignment,
- Alignment? expandedAlignment,
- EdgeInsetsGeometry? childrenPadding,
- Color? backgroundColor,
- Color? collapsedBackgroundColor,
- Color? textColor,
- Color? collapsedTextColor,
- Color? iconColor,
- Color? collapsedIconColor,
- ShapeBorder? shape,
- ShapeBorder? collapsedShape,
- Clip? clipBehavior = Clip.hardEdge,
- ListTileControlAffinity? controlAffinity,
- ExpansibleController? controller,
- bool? dense,
- VisualDensity? visualDensity,
- double? minTileHeight,
- bool? enableFeedback = true,
- bool enabled = true,
- AnimationStyle? expansionAnimationStyle,
- Color? borderColor,
- Color? collapsedBorderColor,
- String? titleText,
- String? subtitleText,
ExpansionTile 可展开的列表项组件
Implementation
const CustomExpansionTile({
this.title,
super.key,
this.leading,
this.subtitle,
this.onExpansionChanged,
this.children = const <Widget>[],
this.trailing,
this.showTrailingIcon = true,
this.initiallyExpanded = false,
this.maintainState = false,
this.tilePadding,
this.expandedCrossAxisAlignment,
this.expandedAlignment,
this.childrenPadding,
this.backgroundColor,
this.collapsedBackgroundColor,
this.textColor,
this.collapsedTextColor,
this.iconColor,
this.collapsedIconColor,
this.shape,
this.collapsedShape,
this.clipBehavior = Clip.hardEdge,
this.controlAffinity,
this.controller,
this.dense,
this.visualDensity,
this.minTileHeight,
this.enableFeedback = true,
this.enabled = true,
this.expansionAnimationStyle,
this.borderColor,
this.collapsedBorderColor,
this.titleText,
this.subtitleText,
});