SizingExtension extension

on

Methods

aspectRatio(double aspectRatio) Widget

Available on Widget, provided by the SizingExtension extension

Wrap the widget in an AspectRatio widget.
constrained(BoxConstraints constraints) Widget

Available on Widget, provided by the SizingExtension extension

Wrap the widget in a ConstrainedBox widget.
expanded({int flex = 1}) Widget

Available on Widget, provided by the SizingExtension extension

Wrap the widget in an Expanded widget.
fit({BoxFit fit = BoxFit.contain, Alignment alignment = Alignment.center, Clip clipBehavior = Clip.none}) Widget

Available on Widget, provided by the SizingExtension extension

Wrap the widget in a FittedBox widget.
flexible({int flex = 1, FlexFit fit = FlexFit.loose}) Widget

Available on Widget, provided by the SizingExtension extension

Wrap the widget in a Flexible widget.
fractionallySized({Alignment alignment = Alignment.center, double widthFactor = 1.0, double heightFactor = 1.0}) Widget

Available on Widget, provided by the SizingExtension extension

Wrap the widget in a FractionallySizedBox widget.
size(Size size) Widget

Available on Widget, provided by the SizingExtension extension

Wrap the widget with a SizedBox widget.