TContainer constructor
const
TContainer({
- double? width,
- double? height,
- double minWidth = 0.0,
- double maxWidth = double.infinity,
- double minHeight = 0.0,
- double maxHeight = double.infinity,
- Clip clipBehavior = Clip.hardEdge,
- TBorderShape borderShape = TBorderShape.adaptive,
- double borderRadius = 0.0,
- BorderSide borderSide = BorderSide.none,
- EdgeInsetsGeometry margin = EdgeInsets.zero,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- AlignmentGeometry alignment = Alignment.center,
- Color? color,
- Gradient? gradient,
- DecorationImage? decorationImage,
- double backgroundBlur = 0.0,
- BlendMode? blendMode,
- List<
BoxShadow> shadows = const [], - Widget? child,
- Key? key,
Implementation
const TContainer({
this.width,
this.height,
this.minWidth = 0.0,
this.maxWidth = double.infinity,
this.minHeight = 0.0,
this.maxHeight = double.infinity,
this.clipBehavior = Clip.hardEdge,
this.borderShape = TBorderShape.adaptive,
this.borderRadius = 0.0,
this.borderSide = BorderSide.none,
this.margin = EdgeInsets.zero,
this.padding = EdgeInsets.zero,
this.alignment = Alignment.center,
this.color,
this.gradient,
this.decorationImage,
this.backgroundBlur = 0.0,
this.blendMode,
this.shadows = const [],
this.child,
super.key,
}) : assert(width == null || width >= 0.0, 'Width must be non-negative'),
assert(height == null || height >= 0.0, 'Height must be non-negative'),
assert(minWidth >= 0.0, 'Minimum width must be non-negative'),
assert(maxWidth >= 0.0, 'Maximum width must be non-negative'),
assert(minHeight >= 0.0, 'Minimum height must be non-negative'),
assert(maxHeight >= 0.0, 'Maximum height must be non-negative'),
assert(borderRadius >= 0.0, 'Border radius must be non-negative'),
assert(backgroundBlur >= 0.0, 'Background blur must be non-negative');