WidgetExtension extension

Chainable modifiers on Widget.

on

Properties

center Widget

Available on Widget, provided by the WidgetExtension extension

Center widget
no setter
expanded Widget

Available on Widget, provided by the WidgetExtension extension

Expand widget
no setter

Methods

align([AlignmentGeometry alignment = Alignment.center]) Widget

Available on Widget, provided by the WidgetExtension extension

Align widget
aspectRatio(double ratio) Widget

Available on Widget, provided by the WidgetExtension extension

Force a width/height ratio.
background(Color color) Widget

Available on Widget, provided by the WidgetExtension extension

Fill with color behind the widget.
blur(double sigma) Widget

Available on Widget, provided by the WidgetExtension extension

Gaussian blur behind/over the widget.
border({required BorderRadius borderRadius, Color color = Colors.black, double width = 1.0}) Widget

Available on Widget, provided by the WidgetExtension extension

Add a rounded border around the widget.
circular([double radius = 8.0]) Widget

Available on Widget, provided by the WidgetExtension extension

Clip widget with circular border radius
constrained({double? minWidth, double? maxWidth, double? minHeight, double? maxHeight}) Widget

Available on Widget, provided by the WidgetExtension extension

Constrain size within the given bounds.
elevated([double elevation = 4.0]) Widget

Available on Widget, provided by the WidgetExtension extension

Add card elevation
flexible({int flex = 1}) Widget

Available on Widget, provided by the WidgetExtension extension

Flexible widget
height(double h) Widget

Available on Widget, provided by the WidgetExtension extension

Set the height (width unconstrained).
inkWell(VoidCallback action, {BorderRadius? borderRadius}) Widget

Available on Widget, provided by the WidgetExtension extension

Add tap handler with a material ripple effect.
margin([EdgeInsetsGeometry value = const EdgeInsets.all(16)]) Widget

Available on Widget, provided by the WidgetExtension extension

Wrap widget with margin (visual space, implemented as padding).
onDoubleTap(VoidCallback action) Widget

Available on Widget, provided by the WidgetExtension extension

Add double-tap gesture detector
onLongPress(VoidCallback action) Widget

Available on Widget, provided by the WidgetExtension extension

Add long-press gesture detector
onTap(VoidCallback action) Widget

Available on Widget, provided by the WidgetExtension extension

Add gesture detector
opacity(double opacity) Widget

Available on Widget, provided by the WidgetExtension extension

Add opacity to widget
padding([EdgeInsetsGeometry value = const EdgeInsets.all(16)]) Widget

Available on Widget, provided by the WidgetExtension extension

Wrap widget with padding
rotated(double turns) Widget

Available on Widget, provided by the WidgetExtension extension

Rotate by turns (1 = full 360 deg).
safeArea() Widget

Available on Widget, provided by the WidgetExtension extension

Wrap in a SafeArea.
scaled(double scale) Widget

Available on Widget, provided by the WidgetExtension extension

Scale the widget.
size({double? width, double? height}) Widget

Available on Widget, provided by the WidgetExtension extension

Wrap widget with SizedBox
tooltip(String message) Widget

Available on Widget, provided by the WidgetExtension extension

Show a tooltip on long press.
visible(bool visible) Widget

Available on Widget, provided by the WidgetExtension extension

Show/hide without losing state.
width(double w) Widget

Available on Widget, provided by the WidgetExtension extension

Set the width (height unconstrained).