CustomContainer constructor

const CustomContainer({
  1. Key? key,
  2. Color? backgroundColor,
  3. Color? borderColor,
  4. double? borderRadius,
  5. double? width,
  6. double? height,
  7. Widget? child,
  8. EdgeInsets? margin,
  9. EdgeInsets? padding,
  10. double borderWidth = 1,
  11. VoidCallback? onPress,
  12. AlignmentGeometry? alignment,
})

Implementation

const CustomContainer({
  super.key,
  this.backgroundColor, // Default to null
  this.borderColor, // Default to null
  this.borderRadius,
  this.width, // Default to null
  this.height, // Default to null
  this.child,
  this.margin,
  this.padding,
  this.borderWidth = 1,
  this.onPress,
  this.alignment,
});