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 Widgetno setter
Methods
-
expandedWith(
int flex) → Expanded -
Available on Widget, provided by the MoyeWidgetExtension extension
Wrap this widget with a Expanded Widget and specify aflex
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 givenaspectRatio
-
withConstraints(
BoxConstraints constraints) → Widget -
Available on Widget, provided by the MoyeWidgetExtension extension
Wrap this widget with a ConstrainedBox, and set it's constraints toconstraints
-
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 toheight
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 tominHeight
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 tominWidth
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 specifyborder
-
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 towidth
by wrapping it inside a SizedBox