allowsInfiniteHeight property
Override this property to allow this WidgetElement to have infinite height constraints. When set to true, RenderWidget will pass the infinite height constraint to its child if it receives an infinite height constraint itself. This is useful for widgets that wrap a scrollable container around them.
Implementation
@override
bool get allowsInfiniteHeight => true;