allowsInfiniteWidth property

  1. @override
bool get allowsInfiniteWidth
override

Override this property to allow this WidgetElement to have infinite width constraints. When set to true, RenderWidget will pass the infinite width 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 allowsInfiniteWidth => true;