UStack constructor
const
UStack({
- required List<
Widget> children, - Key? key,
- AlignmentGeometry stackAlignment = AlignmentDirectional.topStart,
- StackFit fit = StackFit.loose,
- Clip stackClip = Clip.hardEdge,
- TextDirection? textDirection,
- double? width,
- double? height,
- double? minWidth,
- double? maxWidth,
- double? minHeight,
- double? maxHeight,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? color,
- Gradient? gradient,
- DecorationImage? image,
- BoxBorder? border,
- double? radius,
- BorderRadius? borderRadius,
- List<
BoxShadow> ? boxShadow, - BoxConstraints? constraints,
- BoxShape shape = BoxShape.rectangle,
- BlendMode? backgroundBlendMode,
- Decoration? foregroundDecoration,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- GestureTapCallback? onDoubleTap,
- bool splash = false,
- double? pressedScale,
- MouseCursor? cursor,
- ValueChanged<
bool> ? onHover, - double? opacity,
- String? tooltip,
- String? semanticsLabel,
- bool visible = true,
- String? heroTag,
- VoidCallback? onPress,
- double? scale,
- double? rotate,
- Offset? translate,
- bool center = false,
- bool safeArea = false,
- Axis? scrollable,
- ScrollController? scrollController,
- int? expanded,
- int? flexible,
- bool positioned = false,
- double? left,
- double? top,
- double? right,
- double? bottom,
- double? positionedWidth,
- double? positionedHeight,
Implementation
const UStack({
required this.children,
super.key,
this.stackAlignment = AlignmentDirectional.topStart,
this.fit = StackFit.loose,
this.stackClip = Clip.hardEdge,
this.textDirection,
this.width,
this.height,
this.minWidth,
this.maxWidth,
this.minHeight,
this.maxHeight,
this.padding,
this.margin,
this.color,
this.gradient,
this.image,
this.border,
this.radius,
this.borderRadius,
this.boxShadow,
this.constraints,
this.shape = BoxShape.rectangle,
this.backgroundBlendMode,
this.foregroundDecoration,
this.onTap,
this.onLongPress,
this.onDoubleTap,
this.splash = false,
this.pressedScale,
this.cursor,
this.onHover,
this.opacity,
this.tooltip,
this.semanticsLabel,
this.visible = true,
this.heroTag,
this.onPress,
this.scale,
this.rotate,
this.translate,
this.center = false,
this.safeArea = false,
this.scrollable,
this.scrollController,
this.expanded,
this.flexible,
this.positioned = false,
this.left,
this.top,
this.right,
this.bottom,
this.positionedWidth,
this.positionedHeight,
});