MoyeWidgetExtension extension

on

Properties

asSliver → SliverToBoxAdapter

Available on Widget, provided by the MoyeWidgetExtension extension

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.
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
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
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