AppButton constructor
const
AppButton(
- String text, {
- Key? key,
- VoidCallback? onPressed,
- Widget? icon,
- bool loading = false,
- bool disabled = false,
- ButtonType type = ButtonType.normal,
- double borderRadius = 10.0,
- double borderWidth = 1,
- Color? borderColor,
- Color? textColor,
- Color? color,
- double elevation = 0,
- double fontSize = 14,
- MainAxisSize axisSize = MainAxisSize.max,
Implementation
const AppButton(
this.text, {
Key? key,
this.onPressed,
this.icon,
this.loading = false,
this.disabled = false,
this.type = ButtonType.normal,
this.borderRadius = 10.0,
this.borderWidth = 1,
this.borderColor,
this.textColor,
this.color,
this.elevation = 0,
this.fontSize = 14,
this.axisSize = MainAxisSize.max,
}) : super(key: key);