WidgetMarginX extension

Extension methods for adding margin to widgets

on

Properties

marginZero Widget

Available on Widget, provided by the WidgetMarginX extension

No margin (for consistency/readability)
no setter

Methods

margin(EdgeInsetsGeometry margin) Widget

Available on Widget, provided by the WidgetMarginX extension

Add margin from EdgeInsets
marginAll(double margin) Widget

Available on Widget, provided by the WidgetMarginX extension

Add equal margin to all sides
marginOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) Widget

Available on Widget, provided by the WidgetMarginX extension

Add margin with custom sides
marginSymmetric({double horizontal = 0.0, double vertical = 0.0}) Widget

Available on Widget, provided by the WidgetMarginX extension

Add symmetric margin
responsiveMargin(BuildContext context, {double? all, double? horizontal, double? vertical, double? left, double? top, double? right, double? bottom}) Widget

Available on Widget, provided by the WidgetMarginX extension

Add margin with responsive values based on screen size