CustomExpansionTile constructor

const CustomExpansionTile({
  1. Widget? title,
  2. Key? key,
  3. Widget? leading,
  4. Widget? subtitle,
  5. ValueChanged<bool>? onExpansionChanged,
  6. List<Widget> children = const <Widget>[],
  7. Widget? trailing,
  8. bool showTrailingIcon = true,
  9. bool initiallyExpanded = false,
  10. bool maintainState = false,
  11. EdgeInsetsGeometry? tilePadding,
  12. CrossAxisAlignment? expandedCrossAxisAlignment,
  13. Alignment? expandedAlignment,
  14. EdgeInsetsGeometry? childrenPadding,
  15. Color? backgroundColor,
  16. Color? collapsedBackgroundColor,
  17. Color? textColor,
  18. Color? collapsedTextColor,
  19. Color? iconColor,
  20. Color? collapsedIconColor,
  21. ShapeBorder? shape,
  22. ShapeBorder? collapsedShape,
  23. Clip? clipBehavior = Clip.hardEdge,
  24. ListTileControlAffinity? controlAffinity,
  25. ExpansibleController? controller,
  26. bool? dense,
  27. VisualDensity? visualDensity,
  28. double? minTileHeight,
  29. bool? enableFeedback = true,
  30. bool enabled = true,
  31. AnimationStyle? expansionAnimationStyle,
  32. Color? borderColor,
  33. Color? collapsedBorderColor,
  34. String? titleText,
  35. 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,
});