ExpandableWidget.maxHeight constructor

const ExpandableWidget.maxHeight({
  1. Key? key,
  2. Color? arrowColor,
  3. double arrowSize = 24,
  4. ArrowBuilder? arrowWidgetBuilder,
  5. double? arrowWidgetHeight,
  6. Duration animationDuration = const Duration(milliseconds: 150),
  7. required Widget child,
  8. double maxHeight = 100.0,
  9. bool expand = false,
  10. Alignment alignment = Alignment.topCenter,
})

Auto control Collapse child to max-height With a arrow at the bottom. If the child's height < maxHeight, then will show child directly

Implementation

const ExpandableWidget.maxHeight({
  Key? key,
  this.arrowColor,
  this.arrowSize = 24,
  this.arrowWidgetBuilder,
  this.arrowWidgetHeight,
  this.animationDuration = const Duration(milliseconds: 150),
  required this.child,
  this.maxHeight = 100.0,
  this.expand = false,
  this.alignment = Alignment.topCenter,
})  : vsync = null,
      mode = _ExpandMode.MaxHeight,
      super(key: key);