CyberBox constructor

const CyberBox({
  1. Key? key,
  2. dynamic width,
  3. dynamic height,
  4. Color? backgroundColor,
  5. EdgeInsets? padding,
  6. BoxBorder? border,
  7. BorderRadius? borderRadius,
  8. double? radius,
  9. double? topLeftRadius,
  10. double? topRightRadius,
  11. double? bottomLeftRadius,
  12. double? bottomRightRadius,
  13. List<Widget> children = const [],
  14. CyberAlign vAlign = CyberAlign.start,
  15. CyberAlign hAlign = CyberAlign.start,
  16. VoidCallback? onClick,
  17. double spacing = 0,
  18. bool showRipple = true,
  19. EdgeInsets? margin,
  20. List<BoxShadow>? shadows,
})

Implementation

const CyberBox({
  super.key,
  this.width,
  this.height,
  this.backgroundColor,
  this.padding,
  this.border,
  this.borderRadius,
  this.radius,
  this.topLeftRadius,
  this.topRightRadius,
  this.bottomLeftRadius,
  this.bottomRightRadius,
  this.children = const [],
  this.vAlign = CyberAlign.start,
  this.hAlign = CyberAlign.start,
  this.onClick,
  this.spacing = 0,
  this.showRipple = true,
  this.margin,
  this.shadows,
});