Button constructor
const
Button({
- Key? key,
- String? title,
- double width = 100,
- VoidCallback? onPressed,
- IconData? icon,
- bool isLoading = false,
- bool isDisabled = false,
- TextStyle? textStyle,
- ButtonType buttonType = ButtonType.primary,
- double? height,
- Color? secondaryColor,
- Color? primaryColor,
- Color? errorColor,
- Color? successColor,
Implementation
const Button({
super.key,
this.title,
this.width = 100,
this.onPressed,
this.icon,
this.isLoading = false,
this.isDisabled = false,
this.textStyle,
this.buttonType = ButtonType.primary,
this.height,
this.secondaryColor,
this.primaryColor,
this.errorColor,
this.successColor,
});