WidgetLayoutExtensions extension

Convenient layout and styling extensions on Widget.

on

Methods

expanded({int flex = 1, Key? key}) → Expanded

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps this widget in an Expanded.
fittedBox({Key? key, BoxFit fit = BoxFit.contain, AlignmentGeometry alignment = Alignment.center, Clip clipBehavior = Clip.none}) → Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps this widget in a FittedBox.
flexible({int flex = 1, FlexFit fit = FlexFit.loose, Key? key}) → Flexible

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps this widget in a Flexible.
onTap(VoidCallback? onTap, {Key? key, BorderRadius? borderRadius, Color? splashColor, Color? highlightColor}) → Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps this widget in an InkWell with an onTap handler.
opacity(double opacity, {Key? key, bool alwaysIncludeSemantics = false}) → Opacity

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps this widget in an Opacity.
rotate({required double angle, Key? key, Offset? origin, AlignmentGeometry alignment = Alignment.center}) → Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps this widget in a Transform.rotate widget.
safeArea({Key? key, bool left = true, bool top = true, bool right = true, bool bottom = true, EdgeInsets minimum = EdgeInsets.zero, bool maintainBottomViewPadding = false}) → Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps this widget in a SafeArea.
visibility({Key? key, required bool visible, bool maintainState = false, bool maintainAnimation = false, bool maintainSize = false, bool maintainSemantics = false, bool maintainInteractivity = false, Widget replacement = const SizedBox.shrink()}) → Visibility

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps this widget in a Visibility widget.