BasicModifiers extension

Extension-based widget modifiers, which use Fleet's drop-in replacements for basic Flutter widgets.

on

Methods

alignment({double? start, double? x, double? y, AlignmentGeometry? alignment, double? widthFactor, double? heightFactor}) Widget
Aligns this widget within the available space.
aspectRatio(double aspectRatio) Widget
Attempts to size the widget to a specific aspect ratio.
boxColor(Color color) Widget
Fills the area behind this widget with a color.
centered({double? widthFactor, double? heightFactor}) Widget
Centers this widget within the available space
constraints({double? minWidth, double? maxWidth, double? minHeight, double? maxHeight, BoxConstraints? constraints, bool overflow = false, AlignmentGeometry? alignment}) Widget
Applies additional constraints to this widget.
expanded([int flex = 1]) Widget
Sizes this widget so that it fills the available space within its parent Row, Column, or Flex widget.
fit(BoxFit fit, {AlignmentGeometry alignment = Alignment.center, Clip clipBehavior = Clip.none}) Widget
Scales and positions this widget within the available space according to fit
flex(int flex, {FlexFit fit = FlexFit.loose}) Widget
Specifies how this widget is supposed to fill the available space in the main axis within its parent Row, Column, or Flex widget.
flexible([int flex = 1]) Widget
Sizes this widget within the constraints of the available space within its parent Row, Column, or Flex widget.
limit({double maxHeight = double.infinity, double maxWidth = double.infinity}) Widget
Limits this widget's size only when it's unconstrained.
offset({double? x, double? y, Offset? offset, bool transformHitTests = true, FilterQuality? filterQuality, bool fractional = false}) Widget
Offsets this widget by x and y or an offset.
opacity(double opacity, {bool alwaysIncludeSemantics = false, bool sliver = false}) Widget
Applies opacity to this widget.
padding({double? start, double? end, double? left, double? right, double? top, double? bottom, double? horizontal, double? vertical, double? all, EdgeInsetsGeometry? padding, bool sliver = false}) Widget
Adds padding around this widget.
position({double? start, double? end, double? left, double? right, double? top, double? bottom, double? height, double? width, bool? fill, Rect? rect, RelativeRect? relativeRect}) Widget
Positions this widget within its parent Stack widget.
rotation(double angle, {Offset? origin, AlignmentGeometry? alignment, bool transformHitTests = true, FilterQuality? filterQuality}) Widget
Rotates this widget by angle radians.
scale({double? xy, double? x, double? y, Offset? origin, AlignmentGeometry? alignment, bool transformHitTests = true, FilterQuality? filterQuality}) Widget
Scales this widget by xy for both the x and y axis or x and y separately.
size({double? width, double? height, Size? size, double? square, bool? expand, bool? shrink, bool fractional = false, bool overflow = false, AlignmentGeometry? alignment}) Widget
Applies tight size constraints to this widget.
transform(Matrix4 transform, {Offset? origin, AlignmentGeometry? alignment, bool transformHitTests = true, FilterQuality? filterQuality}) Widget
Transforms this widget using a Matrix4.