MoyeWidgetExtension extension

on

Properties

asSliver SliverToBoxAdapter

Available on Widget, provided by the MoyeWidgetExtension extension

sliver extensions for widget (converts a widget to sliver)
no setter
expanded Expanded

Available on Widget, provided by the MoyeWidgetExtension extension

Wrap this widget with a Expanded Widget
no setter

Methods

expandedWith(int flex) Expanded

Available on Widget, provided by the MoyeWidgetExtension extension

Wrap this widget with a Expanded Widget and specify a flex for it
onTap({VoidCallback? onTap}) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Detect taps on a widget easily
rotate(int quarterTurns) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

The number of clockwise quarter turns the child should be rotated.
withAspectRatio({required double aspectRatio}) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Show the widget with the given aspectRatio
withConstraints(BoxConstraints constraints) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Wrap this widget with a ConstrainedBox, and set it's constraints to constraints
withFlexible({int flex = 1, FlexFit fit = FlexFit.loose}) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Wraps this inside a Flexible
withHeight(double? height) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Set the height of this widget set to height by wrapping it inside a SizedBox
withMinHeight(double minHeight) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Set the min height of this widget to minHeight by wrapping it inside a ConstrainedBox
withMinWidth(double minWidth) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Set the min width of this widget to minWidth by wrapping it inside a ConstrainedBox
withPadding(EdgeInsetsGeometry padding) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Wrap this widget with a padding for a given EdgeInsetsGeometry
withRoundCorners({BoxBorder? border, BorderRadius? borderRadius}) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Makes this widget have round corners. You could also specify border
withSize({double? width, double? height}) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Give a size to this widget
withSliverPadding(EdgeInsetsGeometry padding) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Wrap this widget with a sliver padding for a given EdgeInsetsGeometry
withWidth(double? width) Widget

Available on Widget, provided by the MoyeWidgetExtension extension

Set the width of this widget set to width by wrapping it inside a SizedBox