WidgetX extension

on

Methods

box({double minW = 0.0, double minH = 0.0, double maxW = double.infinity, double maxH = double.infinity}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a ConstrainedBox to apply layout constraints.
card({TCardShadow shadow = TCardShadow.none, EdgeInsetsGeometry padding = const EdgeInsets.all(12), EdgeInsetsGeometry margin = EdgeInsets.zero, BorderRadius? borderRadius, Color? backgroundColor, Color? borderColor, VoidCallback? onTap}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a TCard with a preset shadow depth.
cardLg({EdgeInsetsGeometry padding = const EdgeInsets.all(12), VoidCallback? onTap}) → Widget

Available on Widget, provided by the WidgetX extension

card with a prominent TCardShadow.lg shadow.
cardMd({EdgeInsetsGeometry padding = const EdgeInsets.all(12), VoidCallback? onTap}) → Widget

Available on Widget, provided by the WidgetX extension

card with a standard TCardShadow.md shadow.
cardSm({EdgeInsetsGeometry padding = const EdgeInsets.all(12), VoidCallback? onTap}) → Widget

Available on Widget, provided by the WidgetX extension

card with a subtle TCardShadow.sm shadow.
center({bool when = true}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a Center widget.
expanded({int flex = 1}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in an Expanded widget.
padding([double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0]) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a Padding with flexible edge control.
paddingSymmetric({double h = 0.0, double v = 0.0}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a Padding with symmetric horizontal and vertical spacing.
size({double? w, double? h}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a SizedBox to apply fixed width and/or height.
visible(bool visible, {bool maintainState = false}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a Visibility widget.
when(bool condition) → Widget

Available on Widget, provided by the WidgetX extension

Returns this widget if condition is true, otherwise returns SizedBox.shrink(). Usage: Text('Hello').when(isVisible)