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. BorderRadius? radius,
  11. BoxBorder? border,
  12. List<BoxShadow>? boxShadows,
  13. Gradient? gradient,
  14. BoxConstraints? constraints,
  15. bool isSelected = false,
  16. bool isEnabled = true,
  17. Widget? normalChild,
  18. Widget? selectedChild,
  19. Widget? disabledChild,
  20. 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.radius,
  this.border,
  this.boxShadows,
  this.gradient,
  this.constraints,
  this.isSelected = false,
  this.isEnabled = true,
  this.normalChild,
  this.selectedChild,
  this.disabledChild,
  this.onTap,
});