ExpansionTileCard constructor
const
ExpansionTileCard({
- Key? key,
- Widget? leading,
- required Widget title,
- Widget? subtitle,
- ValueChanged<
bool> ? onExpansionChanged, - List<
Widget> children = const <Widget>[], - Widget? trailing,
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(8.0)),
- double elevation = 2.0,
- double initialElevation = 0.0,
- bool initiallyExpanded = false,
- EdgeInsetsGeometry initialPadding = EdgeInsets.zero,
- EdgeInsetsGeometry finalPadding = const EdgeInsets.only(bottom: 6.0),
- EdgeInsetsGeometry? contentPadding,
- Color? baseColor,
- Color? expandedColor,
- Color? expandedTextColor,
- Duration duration = const Duration(milliseconds: 200),
- Curve elevationCurve = Curves.easeOut,
- Curve heightFactorCurve = Curves.easeIn,
- Curve turnsCurve = Curves.easeIn,
- Curve colorCurve = Curves.easeIn,
- Curve paddingCurve = Curves.easeIn,
- bool isThreeLine = false,
- Color shadowColor = const Color(0xffaaaaaa),
- bool animateTrailing = false,
Creates a single-line ListTile with a trailing button that expands or collapses the tile to reveal or hide the children. The initiallyExpanded property must be non-null.
Implementation
const ExpansionTileCard({
super.key,
this.leading,
required this.title,
this.subtitle,
this.onExpansionChanged,
this.children = const <Widget>[],
this.trailing,
this.borderRadius = const BorderRadius.all(Radius.circular(8.0)),
this.elevation = 2.0,
this.initialElevation = 0.0,
this.initiallyExpanded = false,
this.initialPadding = EdgeInsets.zero,
this.finalPadding = const EdgeInsets.only(bottom: 6.0),
this.contentPadding,
this.baseColor,
this.expandedColor,
this.expandedTextColor,
this.duration = const Duration(milliseconds: 200),
this.elevationCurve = Curves.easeOut,
this.heightFactorCurve = Curves.easeIn,
this.turnsCurve = Curves.easeIn,
this.colorCurve = Curves.easeIn,
this.paddingCurve = Curves.easeIn,
this.isThreeLine = false,
this.shadowColor = const Color(0xffaaaaaa),
this.animateTrailing = false,
});