ConfigurableExpansionTile constructor

const ConfigurableExpansionTile({
  1. Key? key,
  2. Color headerBackgroundColorStart = Colors.transparent,
  3. ValueChanged<bool>? onExpansionChanged,
  4. bool initiallyExpanded = false,
  5. required Widget header(
    1. bool isExpanded,
    2. Animation<double> iconTurns,
    3. Animation<double> heightFactor
    ),
  6. Widget? animatedWidgetFollowingHeader,
  7. Widget? animatedWidgetPrecedingHeader,
  8. Color? expandedBackgroundColor,
  9. Color borderColorStart = Colors.transparent,
  10. Color borderColorEnd = Colors.transparent,
  11. bool topBorderOn = true,
  12. bool bottomBorderOn = true,
  13. Duration kExpand = const Duration(milliseconds: 200),
  14. Color? headerBackgroundColorEnd,
  15. Widget? headerExpanded,
  16. Animatable<double>? headerAnimationTween,
  17. Animatable<double>? borderAnimationTween,
  18. Animatable<double>? animatedWidgetTurnTween,
  19. Animatable<double>? animatedWidgetTween,
  20. Widget? childrenBody,
  21. 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.animatedWidgetTurnTween,
    this.animatedWidgetTween,
    this.childrenBody,
    this.enableExpanded = true})
    : super(key: key);