WidgetExtensions extension

on

Methods

align({Key? key, AlignmentGeometry alignment = Alignment.center, double? widthFactor, double? heightFactor}) Align

Available on Widget, provided by the WidgetExtensions extension

Returns a new aligned widget with the given alignment.
center({Key? key, double? widthFactor, double? heightFactor}) Center

Available on Widget, provided by the WidgetExtensions extension

Returns a new centered widget.
constrained({double? width, double? height}) SizedBox

Available on Widget, provided by the WidgetExtensions extension

Returns a new constrained widget with the given width and height.
decoration({Key? key, Color? color, DecorationImage? image, BoxBorder? border, BorderRadiusGeometry? borderRadius, List<BoxShadow>? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, BoxShape shape = BoxShape.rectangle}) Container

Available on Widget, provided by the WidgetExtensions extension

Returns a decorated widget with the given decoration.
directionality({required TextDirection direction}) Directionality

Available on Widget, provided by the WidgetExtensions extension

Returns a new directed text widget with the given text direction.
expanded({Key? key, int flex = 1}) Expanded

Available on Widget, provided by the WidgetExtensions extension

Returns a new expanded widget with the given flex.
fade({Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeOut, double beginOpacity = 0}) Widget

Available on Widget, provided by the WidgetExtensions extension

Fades the widget.
flexible({Key? key, int flex = 1}) Flexible

Available on Widget, provided by the WidgetExtensions extension

Returns a new flexible widget with the given flex.
gestures({Key? key, void onTapDown(TapDownDetails)?, void onTapUp(TapUpDetails)?, void onTap()?, void onTapMove(TapMoveDetails)?, void onTapCancel()?, void onSecondaryTap()?, void onSecondaryTapDown(TapDownDetails)?, void onSecondaryTapUp(TapUpDetails)?, void onSecondaryTapCancel()?, void onTertiaryTapDown(TapDownDetails)?, void onTertiaryTapUp(TapUpDetails)?, void onTertiaryTapCancel()?, void onDoubleTapDown(TapDownDetails)?, void onDoubleTap()?, void onDoubleTapCancel()?, void onLongPressDown(LongPressDownDetails)?, void onLongPressCancel()?, void onLongPress()?, void onLongPressStart(LongPressStartDetails)?, void onLongPressMoveUpdate(LongPressMoveUpdateDetails)?, void onLongPressUp()?, void onLongPressEnd(LongPressEndDetails)?, void onSecondaryLongPressDown(LongPressDownDetails)?, void onSecondaryLongPressCancel()?, void onSecondaryLongPress()?, void onSecondaryLongPressStart(LongPressStartDetails)?, void onSecondaryLongPressMoveUpdate(LongPressMoveUpdateDetails)?, void onSecondaryLongPressUp()?, void onSecondaryLongPressEnd(LongPressEndDetails)?, void onTertiaryLongPressDown(LongPressDownDetails)?, void onTertiaryLongPressCancel()?, void onTertiaryLongPress()?, void onTertiaryLongPressStart(LongPressStartDetails)?, void onTertiaryLongPressMoveUpdate(LongPressMoveUpdateDetails)?, void onTertiaryLongPressUp()?, void onTertiaryLongPressEnd(LongPressEndDetails)?, void onVerticalDragDown(DragDownDetails)?, void onVerticalDragStart(DragStartDetails)?, void onVerticalDragUpdate(DragUpdateDetails)?, void onVerticalDragEnd(DragEndDetails)?, void onVerticalDragCancel()?, void onHorizontalDragDown(DragDownDetails)?, void onHorizontalDragStart(DragStartDetails)?, void onHorizontalDragUpdate(DragUpdateDetails)?, void onHorizontalDragEnd(DragEndDetails)?, void onHorizontalDragCancel()?, void onForcePressStart(ForcePressDetails)?, void onForcePressPeak(ForcePressDetails)?, void onForcePressUpdate(ForcePressDetails)?, void onForcePressEnd(ForcePressDetails)?, void onPanDown(DragDownDetails)?, void onPanStart(DragStartDetails)?, void onPanUpdate(DragUpdateDetails)?, void onPanEnd(DragEndDetails)?, void onPanCancel()?, void onScaleStart(ScaleStartDetails)?, void onScaleUpdate(ScaleUpdateDetails)?, void onScaleEnd(ScaleEndDetails)?, HitTestBehavior? behavior, bool excludeFromSemantics = false, DragStartBehavior dragStartBehavior = DragStartBehavior.start, bool trackpadScrollCausesScale = false, Offset trackpadScrollToScaleFactor = kDefaultTrackpadScrollToScaleFactor, Set<PointerDeviceKind>? supportedDevices}) GestureDetector

Available on Widget, provided by the WidgetExtensions extension

Returns a new GestureDetector widget with the given gestures.
height(double height) SizedBox

Available on Widget, provided by the WidgetExtensions extension

Returns a new constrained widget with the given height.
marginAll(double margin) Container

Available on Widget, provided by the WidgetExtensions extension

Returns a new widget with the given margin.
marginOnly({double? left = 0, double? top = 0, double? right = 0, double? bottom = 0}) Container

Available on Widget, provided by the WidgetExtensions extension

Returns a new widget with the given margin.
marginSymmetric({double? vertical = 0, double? horizontal = 0}) Container

Available on Widget, provided by the WidgetExtensions extension

Returns a new widget with the given margin.
paddingAll(double padding) Padding

Available on Widget, provided by the WidgetExtensions extension

Returns a new widget with the given padding.
paddingOnly({double? left = 0, double? top = 0, double? right = 0, double? bottom = 0}) Padding

Available on Widget, provided by the WidgetExtensions extension

Returns a new widget with the given padding.
paddingSymmetric({double? vertical = 0, double? horizontal = 0}) Padding

Available on Widget, provided by the WidgetExtensions extension

Returns a new widget with the given padding.
refreshable({Key? key, double displacement = 40.0, double edgeOffset = 0.0, required Future<void> onRefresh(), Color? color, Color? backgroundColor, bool notificationPredicate(ScrollNotification) = defaultScrollNotificationPredicate, String? semanticsLabel, String? semanticsValue, double strokeWidth = RefreshProgressIndicator.defaultStrokeWidth, RefreshIndicatorTriggerMode triggerMode = RefreshIndicatorTriggerMode.onEdge, double elevation = 2.0}) RefreshIndicator

Available on Widget, provided by the WidgetExtensions extension

Returns a new refresh indicator widget.
rotate({Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeOut, double beginAngle = 0.05}) Widget

Available on Widget, provided by the WidgetExtensions extension

Rotates the widget.
rounded({Key? key, double radius = 8, Clip clipBehavior = Clip.antiAlias, CustomClipper<RRect>? clipper}) ClipRRect

Available on Widget, provided by the WidgetExtensions extension

Returns a new rounded widget with the given radius.
roundedBottom({Key? key, double radius = 8, Clip clipBehavior = Clip.antiAlias, CustomClipper<RRect>? clipper}) ClipRRect

Available on Widget, provided by the WidgetExtensions extension

Returns a new rounded widget from bottom with the given radius.
roundedTop({Key? key, double radius = 8, Clip clipBehavior = Clip.antiAlias, CustomClipper<RRect>? clipper}) ClipRRect

Available on Widget, provided by the WidgetExtensions extension

Returns a new rounded widget from top with the given radius.
scale({Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeOut, double beginScale = 0.95}) Widget

Available on Widget, provided by the WidgetExtensions extension

Scales the widget.
scrollable({Key? key, Axis scrollDirection = Axis.vertical, bool reverse = false, EdgeInsetsGeometry? padding, bool? primary, ScrollPhysics? physics, ScrollController? controller, Widget? child, DragStartBehavior dragStartBehavior = DragStartBehavior.start, Clip clipBehavior = Clip.hardEdge, HitTestBehavior hitTestBehavior = HitTestBehavior.opaque, String? restorationId, ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior}) SingleChildScrollView

Available on Widget, provided by the WidgetExtensions extension

Returns a new scrollable widget.
slideDown({Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeOut, Offset? beginOffset}) Widget

Available on Widget, provided by the WidgetExtensions extension

Slides the widget down.
slideLeft({Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeOut, Offset? beginOffset}) Widget

Available on Widget, provided by the WidgetExtensions extension

Slides the widget left.
slideRight({Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeOut, Offset? beginOffset}) Widget

Available on Widget, provided by the WidgetExtensions extension

Slides the widget right.
slideUp({Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeOut, Offset? beginOffset}) Widget

Available on Widget, provided by the WidgetExtensions extension

Slides the widget up.
width(double width) SizedBox

Available on Widget, provided by the WidgetExtensions extension

Returns a new constrained widget with the given width.