TContainer constructor

const TContainer({
  1. double? width,
  2. double? height,
  3. double minWidth = 0.0,
  4. double maxWidth = double.infinity,
  5. double minHeight = 0.0,
  6. double maxHeight = double.infinity,
  7. Clip clipBehavior = Clip.hardEdge,
  8. TBorderShape borderShape = TBorderShape.adaptive,
  9. double borderRadius = 0.0,
  10. BorderSide borderSide = BorderSide.none,
  11. EdgeInsetsGeometry margin = EdgeInsets.zero,
  12. EdgeInsetsGeometry padding = EdgeInsets.zero,
  13. AlignmentGeometry alignment = Alignment.center,
  14. Color? color,
  15. Gradient? gradient,
  16. DecorationImage? decorationImage,
  17. double backgroundBlur = 0.0,
  18. BlendMode? blendMode,
  19. List<BoxShadow> shadows = const [],
  20. Widget? child,
  21. 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');