UStack constructor

const UStack({
  1. required List<Widget> children,
  2. Key? key,
  3. AlignmentGeometry stackAlignment = AlignmentDirectional.topStart,
  4. StackFit fit = StackFit.loose,
  5. Clip stackClip = Clip.hardEdge,
  6. TextDirection? textDirection,
  7. double? width,
  8. double? height,
  9. double? minWidth,
  10. double? maxWidth,
  11. double? minHeight,
  12. double? maxHeight,
  13. EdgeInsetsGeometry? padding,
  14. EdgeInsetsGeometry? margin,
  15. Color? color,
  16. Gradient? gradient,
  17. DecorationImage? image,
  18. BoxBorder? border,
  19. double? radius,
  20. BorderRadius? borderRadius,
  21. List<BoxShadow>? boxShadow,
  22. BoxConstraints? constraints,
  23. BoxShape shape = BoxShape.rectangle,
  24. BlendMode? backgroundBlendMode,
  25. Decoration? foregroundDecoration,
  26. GestureTapCallback? onTap,
  27. GestureLongPressCallback? onLongPress,
  28. GestureTapCallback? onDoubleTap,
  29. bool splash = false,
  30. double? pressedScale,
  31. MouseCursor? cursor,
  32. ValueChanged<bool>? onHover,
  33. double? opacity,
  34. String? tooltip,
  35. String? semanticsLabel,
  36. bool visible = true,
  37. String? heroTag,
  38. VoidCallback? onPress,
  39. double? scale,
  40. double? rotate,
  41. Offset? translate,
  42. bool center = false,
  43. bool safeArea = false,
  44. Axis? scrollable,
  45. ScrollController? scrollController,
  46. int? expanded,
  47. int? flexible,
  48. bool positioned = false,
  49. double? left,
  50. double? top,
  51. double? right,
  52. double? bottom,
  53. double? positionedWidth,
  54. 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,
});