Universal constructor
const
Universal({
- Key? key,
- bool isScroll = false,
- bool useSingleChildScrollView = true,
- bool useListView = false,
- bool isStack = false,
- bool isWrap = false,
- bool expanded = false,
- bool expand = false,
- bool intrinsicHeight = false,
- bool intrinsicWidth = false,
- double? stepWidth,
- double? stepHeight,
- bool isOval = false,
- bool isClipRRect = false,
- bool isClipRect = false,
- bool visible = true,
- bool offstage = false,
- bool reverse = false,
- bool maintainState = false,
- bool transitionOnUserGestures = false,
- bool isCircleAvatar = false,
- bool maintainAnimation = false,
- bool maintainSize = false,
- bool maintainSemantics = false,
- bool maintainInteractivity = false,
- bool excludeFromSemantics = false,
- bool noScrollBehavior = true,
- bool sized = true,
- bool safeLeft = false,
- bool safeTop = false,
- bool safeRight = false,
- bool safeBottom = false,
- bool safeLTRB = false,
- bool enabled = false,
- double wrapSpacing = 0.0,
- double runSpacing = 0.0,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- Widget replacement = const SizedBox.shrink(),
- StackFit stackFit = StackFit.loose,
- MainAxisSize mainAxisSize = MainAxisSize.max,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- WrapAlignment wrapAlignment = WrapAlignment.start,
- WrapAlignment runAlignment = WrapAlignment.start,
- WrapCrossAlignment wrapCrossAlignment = WrapCrossAlignment.start,
- VerticalDirection verticalDirection = VerticalDirection.down,
- Axis direction = Axis.vertical,
- Axis? scrollDirection,
- HitTestBehavior behavior = HitTestBehavior.opaque,
- BorderRadius? borderRadius,
- Color? color,
- AlignmentGeometry? alignment,
- Widget? child,
- List<
Widget> ? children, - EdgeInsetsGeometry? padding,
- ScrollPhysics? physics,
- ScrollController? scrollController,
- bool? primary,
- Decoration? foregroundDecoration,
- Matrix4? transform,
- Offset? origin,
- BoxConstraints? constraints,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- Decoration? decoration,
- TextBaseline? textBaseline,
- TextDirection? textDirection,
- VoidCallback? onPressed,
- GestureTapCallback? onTap,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCancelCallback? onTapCancel,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapUpCallback? onSecondaryTapUp,
- GestureTapCancelCallback? onSecondaryTapCancel,
- GestureTapCallback? onDoubleTap,
- GestureTapDownCallback? onDoubleTapDown,
- GestureTapCancelCallback? onDoubleTapCancel,
- GestureLongPressCallback? onLongPress,
- GestureLongPressCancelCallback? onLongPressCancel,
- GestureLongPressDownCallback? onLongPressDown,
- GestureLongPressStartCallback? onLongPressStart,
- GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
- GestureLongPressUpCallback? onLongPressUp,
- GestureLongPressEndCallback? onLongPressEnd,
- GestureDragDownCallback? onVerticalDragDown,
- GestureDragStartCallback? onVerticalDragStart,
- GestureDragUpdateCallback? onVerticalDragUpdate,
- GestureDragEndCallback? onVerticalDragEnd,
- GestureDragCancelCallback? onVerticalDragCancel,
- GestureDragDownCallback? onHorizontalDragDown,
- GestureDragStartCallback? onHorizontalDragStart,
- GestureDragUpdateCallback? onHorizontalDragUpdate,
- GestureDragEndCallback? onHorizontalDragEnd,
- GestureDragCancelCallback? onHorizontalDragCancel,
- GestureDragDownCallback? onPanDown,
- GestureDragStartCallback? onPanStart,
- GestureDragUpdateCallback? onPanUpdate,
- GestureDragEndCallback? onPanEnd,
- GestureDragCancelCallback? onPanCancel,
- GestureScaleStartCallback? onScaleStart,
- GestureScaleUpdateCallback? onScaleUpdate,
- GestureScaleEndCallback? onScaleEnd,
- GestureForcePressStartCallback? onForcePressStart,
- GestureForcePressPeakCallback? onForcePressPeak,
- GestureForcePressUpdateCallback? onForcePressUpdate,
- GestureForcePressEndCallback? onForcePressEnd,
- double? radius,
- String? heroTag,
- CreateRectTween? createRectTween,
- HeroFlightShuttleBuilder? flightShuttleBuilder,
- HeroPlaceholderBuilder? placeholderBuilder,
- ImageProvider<
Object> ? backgroundImage, - ImageErrorListener? onBackgroundImageError,
- ImageErrorListener? onForegroundImageError,
- ImageProvider<
Object> ? foregroundImage, - Color? foregroundColor,
- double? minRadius,
- double? maxRadius,
- CustomClipper? clipper,
- Size? size,
- GestureTapCallback? onSecondaryTap,
- GestureLongPressMoveUpdateCallback? onSecondaryLongPressMoveUpdate,
- GestureLongPressCallback? onSecondaryLongPressUp,
- GestureLongPressCallback? onSecondaryLongPress,
- GestureLongPressEndCallback? onSecondaryLongPressEnd,
- GestureLongPressStartCallback? onSecondaryLongPressStart,
- GestureLongPressCancelCallback? onSecondaryLongPressCancel,
- GestureLongPressDownCallback? onSecondaryLongPressDown,
- GestureLongPressCallback? onTertiaryLongPress,
- GestureLongPressCancelCallback? onTertiaryLongPressCancel,
- GestureLongPressDownCallback? onTertiaryLongPressDown,
- GestureLongPressEndCallback? onTertiaryLongPressEnd,
- GestureLongPressMoveUpdateCallback? onTertiaryLongPressMoveUpdate,
- GestureLongPressStartCallback? onTertiaryLongPressStart,
- GestureLongPressUpCallback? onTertiaryLongPressUp,
- GestureTapCancelCallback? onTertiaryTapCancel,
- GestureTapDownCallback? onTertiaryTapDown,
- GestureTapUpCallback? onTertiaryTapUp,
- double? left,
- double? top,
- double? right,
- double? bottom,
- int? flex,
- double? opacity,
- Clip? clipBehavior,
- double? widthFactor,
- double? heightFactor,
- ImageFilter? filter,
- BoxFit? fit,
- SystemUiOverlayStyle? systemOverlayStyle,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- BlendMode blendMode = BlendMode.srcOver,
- UnifiedButtonCategory? unifiedButtonCategory,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- WidgetStatesController? statesController,
Implementation
const Universal({
super.key,
this.isScroll = false,
this.useSingleChildScrollView = true,
this.useListView = false,
this.isStack = false,
this.isWrap = false,
this.expanded = false,
this.expand = false,
this.intrinsicHeight = false,
this.intrinsicWidth = false,
this.stepWidth,
this.stepHeight,
this.isOval = false,
this.isClipRRect = false,
this.isClipRect = false,
this.visible = true,
this.offstage = false,
this.reverse = false,
this.maintainState = false,
this.transitionOnUserGestures = false,
this.isCircleAvatar = false,
this.maintainAnimation = false,
this.maintainSize = false,
this.maintainSemantics = false,
this.maintainInteractivity = false,
this.excludeFromSemantics = false,
this.noScrollBehavior = true,
this.sized = true,
this.safeLeft = false,
this.safeTop = false,
this.safeRight = false,
this.safeBottom = false,
this.safeLTRB = false,
this.enabled = false,
this.wrapSpacing = 0.0,
this.runSpacing = 0.0,
this.dragStartBehavior = DragStartBehavior.start,
this.replacement = const SizedBox.shrink(),
this.stackFit = StackFit.loose,
this.mainAxisSize = MainAxisSize.max,
this.mainAxisAlignment = MainAxisAlignment.start,
this.crossAxisAlignment = CrossAxisAlignment.center,
this.wrapAlignment = WrapAlignment.start,
this.runAlignment = WrapAlignment.start,
this.wrapCrossAlignment = WrapCrossAlignment.start,
this.verticalDirection = VerticalDirection.down,
this.direction = Axis.vertical,
this.scrollDirection,
this.behavior = HitTestBehavior.opaque,
this.borderRadius,
this.color,
this.alignment,
this.child,
this.children,
this.padding,
this.physics,
this.scrollController,
this.primary,
this.foregroundDecoration,
this.transform,
this.origin,
this.constraints,
this.width,
this.height,
this.margin,
this.decoration,
this.textBaseline,
this.textDirection,
this.onPressed,
this.onTap,
this.onTapDown,
this.onTapUp,
this.onTapCancel,
this.onSecondaryTapDown,
this.onSecondaryTapUp,
this.onSecondaryTapCancel,
this.onDoubleTap,
this.onDoubleTapDown,
this.onDoubleTapCancel,
this.onLongPress,
this.onLongPressCancel,
this.onLongPressDown,
this.onLongPressStart,
this.onLongPressMoveUpdate,
this.onLongPressUp,
this.onLongPressEnd,
this.onVerticalDragDown,
this.onVerticalDragStart,
this.onVerticalDragUpdate,
this.onVerticalDragEnd,
this.onVerticalDragCancel,
this.onHorizontalDragDown,
this.onHorizontalDragStart,
this.onHorizontalDragUpdate,
this.onHorizontalDragEnd,
this.onHorizontalDragCancel,
this.onPanDown,
this.onPanStart,
this.onPanUpdate,
this.onPanEnd,
this.onPanCancel,
this.onScaleStart,
this.onScaleUpdate,
this.onScaleEnd,
this.onForcePressStart,
this.onForcePressPeak,
this.onForcePressUpdate,
this.onForcePressEnd,
this.radius,
this.heroTag,
this.createRectTween,
this.flightShuttleBuilder,
this.placeholderBuilder,
this.backgroundImage,
this.onBackgroundImageError,
this.onForegroundImageError,
this.foregroundImage,
this.foregroundColor,
this.minRadius,
this.maxRadius,
this.clipper,
this.size,
this.onSecondaryTap,
this.onSecondaryLongPressMoveUpdate,
this.onSecondaryLongPressUp,
this.onSecondaryLongPress,
this.onSecondaryLongPressEnd,
this.onSecondaryLongPressStart,
this.onSecondaryLongPressCancel,
this.onSecondaryLongPressDown,
this.onTertiaryLongPress,
this.onTertiaryLongPressCancel,
this.onTertiaryLongPressDown,
this.onTertiaryLongPressEnd,
this.onTertiaryLongPressMoveUpdate,
this.onTertiaryLongPressStart,
this.onTertiaryLongPressUp,
this.onTertiaryTapCancel,
this.onTertiaryTapDown,
this.onTertiaryTapUp,
this.left,
this.top,
this.right,
this.bottom,
this.flex,
this.opacity,
this.clipBehavior,
this.widthFactor,
this.heightFactor,
this.filter,
this.fit,
this.systemOverlayStyle,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.restorationId,
this.blendMode = BlendMode.srcOver,
this.unifiedButtonCategory,
this.onHover,
this.onFocusChange,
this.style,
this.focusNode,
this.autofocus = false,
this.statesController,
});