WidgetExtension extension
The WidgetExtension extension is an extension on the Widget class in Flutter.
It allows for additional functionality to be added to any widget through the use of dot notation.
- on
Properties
- center → Center
-
Available on Widget, provided by the WidgetExtension extension
Centers the current widget.no setter
Methods
-
expand(
[int flex = 1]) → Expanded -
Available on Widget, provided by the WidgetExtension extension
Expands the current widget to fill available space. -
flexible(
[int flex = 1, FlexFit fit = FlexFit.loose]) → Flexible -
Available on Widget, provided by the WidgetExtension extension
Makes the current widget flexible. -
hBox(
double height) → SizedBox -
Available on Widget, provided by the WidgetExtension extension
Creates a SizedBox with specified height and the current widget as its child. -
hide(
bool isVisible, {bool maintainSize = false}) → Visibility -
Available on Widget, provided by the WidgetExtension extension
Hides the current widget based on a condition. -
positioned(
{double? top, double? bottom, double? left, double? right, double? height, double? width}) → Positioned -
Available on Widget, provided by the WidgetExtension extension
Positions the current widget within a Stack. -
show(
bool isVisible, {bool maintainSize = false}) → Visibility -
Available on Widget, provided by the WidgetExtension extension
Shows the current widget based on a condition. -
sizedBox(
{double? h, double? w}) → SizedBox -
Available on Widget, provided by the WidgetExtension extension
Wraps the current widget in a SizedBox with specified dimensions. -
sqBox(
double size) → SizedBox -
Available on Widget, provided by the WidgetExtension extension
Creates a square SizedBox with the current widget as its child. -
wBox(
double? width) → SizedBox -
Available on Widget, provided by the WidgetExtension extension
Creates a SizedBox with specified width and the current widget as its child.