WidgetLayoutExtensions extension

Layout-related widget extensions

on

Methods

align({AlignmentGeometry alignment = Alignment.center, double? widthFactor, double? heightFactor}) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with Align
aspectRatio(double aspectRatio) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with AspectRatio
constrained({double? minWidth, double? maxWidth, double? minHeight, double? maxHeight}) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with ConstrainedBox
decoratedBox({Color? color, DecorationImage? image, BoxBorder? border, BorderRadius? borderRadius, List<BoxShadow>? boxShadow, Gradient? gradient}) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with DecoratedBox
fittedBox({BoxFit fit = BoxFit.contain, AlignmentGeometry alignment = Alignment.center}) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with FittedBox
positioned({double? top, double? bottom, double? left, double? right, double? width, double? height}) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with Positioned (for Stack)