AppButton constructor
const
AppButton({
- Key? key,
- String? label,
- dynamic onTap()?,
- double? radius,
- TextStyle? labelStyle,
- Color? buttonColor,
- Gradient? gradient,
- Gradient? buttonBorderGradient,
- Color? buttonBorderColor,
- double? buttonBorderWidth,
- EdgeInsets? padding,
- EdgeInsets? margin,
- bool isFilledButton = true,
- Widget? child,
- Widget? prefix,
- Widget? suffix,
- Alignment alignment = Alignment.center,
- double? width,
- double? height,
- bool isLoading = false,
Implementation
const AppButton({
super.key,
this.label,
this.onTap,
this.radius,
this.labelStyle,
this.buttonColor,
this.gradient,
this.buttonBorderGradient,
this.buttonBorderColor,
this.buttonBorderWidth,
this.padding,
this.margin,
this.isFilledButton = true,
this.child,
this.prefix,
this.suffix,
this.alignment = Alignment.center,
this.width,
this.height,
this.isLoading = false,
});