Button constructor
const
Button({
- Key? key,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? normalBackgroundColor,
- Color? selectedBackgroundColor,
- Color? disabledBackgroundColor,
- bool isCircle = false,
- BorderRadius? radius,
- BoxBorder? border,
- List<
BoxShadow> ? boxShadows, - Gradient? gradient,
- BoxConstraints? constraints,
- bool isSelected = false,
- bool isEnabled = true,
- Widget? normalChild,
- Widget? selectedChild,
- Widget? disabledChild,
- 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,
});