ExpandableWidget.maxHeight constructor
const
ExpandableWidget.maxHeight({})
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);