ConfigurableExpansionTile constructor
const
ConfigurableExpansionTile({
- Key? key,
- Color headerBackgroundColorStart = Colors.transparent,
- ValueChanged<
bool> ? onExpansionChanged, - bool initiallyExpanded = false,
- required Widget header(),
- Widget? animatedWidgetFollowingHeader,
- Widget? animatedWidgetPrecedingHeader,
- Color? expandedBackgroundColor,
- Color borderColorStart = Colors.transparent,
- Color borderColorEnd = Colors.transparent,
- bool topBorderOn = true,
- bool bottomBorderOn = true,
- Duration kExpand = const Duration(milliseconds: 200),
- Color? headerBackgroundColorEnd,
- Widget? headerExpanded,
- Animatable<
double> ? headerAnimationTween, - Animatable<
double> ? borderAnimationTween, - ConfigurableExpansionTileController? controller,
- Animatable<
double> ? animatedWidgetTurnTween, - Animatable<
double> ? animatedWidgetTween, - Widget? childrenBody,
- bool enableExpanded = true,
Creates a a Widget with an optional animatedWidgetPrecedingHeader
and/or
animatedWidgetFollowingHeader
. Optionally, the header can change on the
expanded state by proving a Widget in headerExpanded
. Colors can also
be specified for the animated transitions/states. childrenBody
are revealed
when the expansion tile is expanded.
Implementation
const ConfigurableExpansionTile(
{Key? key,
this.headerBackgroundColorStart = Colors.transparent,
this.onExpansionChanged,
this.initiallyExpanded = false,
required this.header,
this.animatedWidgetFollowingHeader,
this.animatedWidgetPrecedingHeader,
this.expandedBackgroundColor,
this.borderColorStart = Colors.transparent,
this.borderColorEnd = Colors.transparent,
this.topBorderOn = true,
this.bottomBorderOn = true,
this.kExpand = const Duration(milliseconds: 200),
this.headerBackgroundColorEnd,
this.headerExpanded,
this.headerAnimationTween,
this.borderAnimationTween,
this.controller,
this.animatedWidgetTurnTween,
this.animatedWidgetTween,
this.childrenBody,
this.enableExpanded = true})
: super(key: key);