Button constructor

const Button({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. EdgeInsetsGeometry? padding,
  5. EdgeInsetsGeometry? margin,
  6. Color? normalBackgroundColor,
  7. Color? selectedBackgroundColor,
  8. Color? disabledBackgroundColor,
  9. bool isCircle = false,
  10. bool isClipsToBounds = true,
  11. BorderRadius? outerRadius,
  12. BorderRadius? innerRadius,
  13. BoxBorder? border,
  14. List<BoxShadow>? boxShadows,
  15. Gradient? gradient,
  16. BoxConstraints? constraints,
  17. bool isSelected = false,
  18. bool isEnabled = true,
  19. Widget? normalChild,
  20. Widget? selectedChild,
  21. Widget? disabledChild,
  22. VoidCallback? onTap,
})

Implementation

const Button({
  super.key,
  this.width,
  this.height,
  this.padding,
  this.margin,
  this.normalBackgroundColor,
  this.selectedBackgroundColor,
  this.disabledBackgroundColor,
  this.isCircle = false,
  this.isClipsToBounds = true,
  this.outerRadius,
  this.innerRadius,
  this.border,
  this.boxShadows,
  this.gradient,
  this.constraints,
  this.isSelected = false,
  this.isEnabled = true,
  this.normalChild,
  this.selectedChild,
  this.disabledChild,
  this.onTap,
});