WidgetSpacingExtensions extension
Extension methods for Widget spacing
- on
Methods
-
align(
Alignment alignment) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Aligns the widget -
center(
) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Centers the widget -
decorated(
{Color? color, BorderRadius? borderRadius, Border? border, List< BoxShadow> ? boxShadow, Gradient? gradient}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds a decorated container around widget -
expand(
{int flex = 1}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Expands the widget -
flexible(
{int flex = 1, FlexFit fit = FlexFit.loose}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Makes widget flexible -
margin(
EdgeInsets margin) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds margin using Container -
marginAll(
double margin) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds margin to all sides -
marginOnly(
{double left = 0, double top = 0, double right = 0, double bottom = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds margin to specific sides -
marginSymmetric(
{double horizontal = 0, double vertical = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds symmetric margin -
padding(
EdgeInsets padding) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds padding to widget -
paddingAll(
double padding) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds padding to all sides -
paddingOnly(
{double left = 0, double top = 0, double right = 0, double bottom = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds padding to specific sides -
paddingSymmetric(
{double horizontal = 0, double vertical = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds symmetric padding to widget -
responsive(
BuildContext context, {Widget mobile(Widget)?, Widget tablet(Widget)?, Widget desktop(Widget)?}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds a card-like decoration