UContainer constructor

const UContainer({
  1. Widget? child,
  2. Key? key,
  3. EdgeInsetsGeometry? padding,
  4. EdgeInsetsGeometry? margin,
  5. Color? color,
  6. Gradient? gradient,
  7. DecorationImage? image,
  8. BoxBorder? border,
  9. double? radius,
  10. BorderRadius? borderRadius,
  11. List<BoxShadow>? boxShadow,
  12. double? width,
  13. double? height,
  14. double? minWidth,
  15. double? maxWidth,
  16. double? minHeight,
  17. double? maxHeight,
  18. BoxConstraints? constraints,
  19. AlignmentGeometry? alignment,
  20. Clip clipBehavior = Clip.none,
  21. Matrix4? transform,
  22. AlignmentGeometry? transformAlignment,
  23. Decoration? foregroundDecoration,
  24. BoxShape shape = BoxShape.rectangle,
  25. BlendMode? backgroundBlendMode,
  26. GestureTapCallback? onTap,
  27. GestureTapCallback? onDoubleTap,
  28. GestureLongPressCallback? onLongPress,
  29. GestureTapDownCallback? onTapDown,
  30. GestureTapUpCallback? onTapUp,
  31. GestureTapCancelCallback? onTapCancel,
  32. GestureTapCallback? onSecondaryTap,
  33. HitTestBehavior? hitTestBehavior,
  34. bool splash = false,
  35. Color? splashColor,
  36. Color? highlightColor,
  37. Color? hoverColor,
  38. double? pressedScale,
  39. Duration pressDuration = const Duration(milliseconds: 120),
  40. bool enableFeedback = true,
  41. MouseCursor? cursor,
  42. ValueChanged<bool>? onHover,
  43. double? opacity,
  44. String? tooltip,
  45. String? semanticsLabel,
  46. bool? semanticsButton,
  47. bool visible = true,
  48. String? heroTag,
  49. VoidCallback? onPress,
  50. BoxFit? fit,
  51. AlignmentGeometry fitAlignment = Alignment.center,
  52. double? scale,
  53. double? rotate,
  54. Offset? translate,
  55. bool center = false,
  56. bool safeArea = false,
  57. Axis? scrollable,
  58. ScrollController? scrollController,
  59. TextDirection? textDirection,
  60. int? expanded,
  61. int? flexible,
  62. bool positioned = false,
  63. double? left,
  64. double? top,
  65. double? right,
  66. double? bottom,
  67. double? positionedWidth,
  68. double? positionedHeight,
})

Implementation

const UContainer({
  this.child,
  super.key,
  this.padding,
  this.margin,
  this.color,
  this.gradient,
  this.image,
  this.border,
  this.radius,
  this.borderRadius,
  this.boxShadow,
  this.width,
  this.height,
  this.minWidth,
  this.maxWidth,
  this.minHeight,
  this.maxHeight,
  this.constraints,
  this.alignment,
  this.clipBehavior = Clip.none,
  this.transform,
  this.transformAlignment,
  this.foregroundDecoration,
  this.shape = BoxShape.rectangle,
  this.backgroundBlendMode,
  this.onTap,
  this.onDoubleTap,
  this.onLongPress,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.onSecondaryTap,
  this.hitTestBehavior,
  this.splash = false,
  this.splashColor,
  this.highlightColor,
  this.hoverColor,
  this.pressedScale,
  this.pressDuration = const Duration(milliseconds: 120),
  this.enableFeedback = true,
  this.cursor,
  this.onHover,
  this.opacity,
  this.tooltip,
  this.semanticsLabel,
  this.semanticsButton,
  this.visible = true,
  this.heroTag,
  this.onPress,
  this.fit,
  this.fitAlignment = Alignment.center,
  this.scale,
  this.rotate,
  this.translate,
  this.center = false,
  this.safeArea = false,
  this.scrollable,
  this.scrollController,
  this.textDirection,
  this.expanded,
  this.flexible,
  this.positioned = false,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.positionedWidth,
  this.positionedHeight,
});