WidgetExt extension

Extension on Widget providing convenient methods for wrapping widgets with common layouts.

This extension adds fluent methods to easily add padding, expanding behavior, tooltips, containers, and other common widget transformations.

on

Methods

border(BuildContext context, {double radius = 5, EdgeInsetsGeometry padding = const EdgeInsets.all(5), Color? borderColor}) Widget

Available on Widget, provided by the WidgetExt extension

Wraps this widget in a Container with a border.
expanded({int? flex}) Expanded

Available on Widget, provided by the WidgetExt extension

Wraps this widget in an Expanded widget.
flexible({int? flex, FlexFit? flexFit}) Flexible

Available on Widget, provided by the WidgetExt extension

Wraps this widget in a Flexible widget.
onCenter() Center

Available on Widget, provided by the WidgetExt extension

Centers this widget using a Center widget.
onRoundedWhiteContainer({Color? bgColor}) Container

Available on Widget, provided by the WidgetExt extension

Wraps this widget in a rounded white Container.
onSafeArea() Widget

Available on Widget, provided by the WidgetExt extension

Wraps this widget in a SafeArea to avoid system UI intrusions.
onScroll() Widget

Available on Widget, provided by the WidgetExt extension

Wraps this widget in a SingleChildScrollView to make it scrollable.
onWhiteContainer() Container

Available on Widget, provided by the WidgetExt extension

Wraps this widget in a white Container.
paddingAll(double value) Padding

Available on Widget, provided by the WidgetExt extension

Wraps this widget with equal padding on all sides.
paddingBottom(double value) Padding

Available on Widget, provided by the WidgetExt extension

Wraps this widget with padding only on the bottom.
paddingCustom(EdgeInsetsGeometry padding) Padding

Available on Widget, provided by the WidgetExt extension

Wraps this widget with custom Padding.
paddingHorizontal(double value) Padding

Available on Widget, provided by the WidgetExt extension

Wraps this widget with horizontal padding (left and right).
paddingLeft(double value) Padding

Available on Widget, provided by the WidgetExt extension

Wraps this widget with padding only on the left.
paddingRight(double value) Padding

Available on Widget, provided by the WidgetExt extension

Wraps this widget with padding only on the right.
paddingTLBR(double top, double left, double bottom, double right) Padding

Available on Widget, provided by the WidgetExt extension

Wraps this widget with padding specified individually for each side.
paddingTop(double value) Padding

Available on Widget, provided by the WidgetExt extension

Wraps this widget with padding only on the top.
paddingVertical(double value) Padding

Available on Widget, provided by the WidgetExt extension

Wraps this widget with vertical padding (top and bottom).
paddingVH(double verticalPadding, double horizontalPadding) Padding

Available on Widget, provided by the WidgetExt extension

Wraps this widget with symmetric padding.
tooltip(String? text, {TooltipTriggerMode? tooltipTriggerMode}) Widget

Available on Widget, provided by the WidgetExt extension

Wraps this widget with a Tooltip if text is not null or empty.
tooltipMsg(String? text, {TooltipTriggerMode? tooltipTriggerMode}) Widget

Available on Widget, provided by the WidgetExt extension

Wraps this widget with a Tooltip if text is not null or empty.
tooltipOnTap(String? text) Widget

Available on Widget, provided by the WidgetExt extension

Wraps this widget with a tap-triggered Tooltip.