WidgetPaddingX extension

Extension methods for adding padding to widgets

on

Properties

paddingZero Widget

Available on Widget, provided by the WidgetPaddingX extension

No padding (for consistency/readability)
no setter

Methods

padding(EdgeInsetsGeometry padding) Widget

Available on Widget, provided by the WidgetPaddingX extension

Add padding from EdgeInsets
paddingAll(double padding) Widget

Available on Widget, provided by the WidgetPaddingX extension

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

Available on Widget, provided by the WidgetPaddingX extension

Add padding with custom sides
paddingSymmetric({double horizontal = 0.0, double vertical = 0.0}) Widget

Available on Widget, provided by the WidgetPaddingX extension

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

Available on Widget, provided by the WidgetPaddingX extension

Add padding with responsive values based on screen size