AppButton constructor
const
AppButton({
- Key? key,
- required Widget text,
- double? width,
- double? height,
- Color? color,
- Color? textColor,
- double? borderRadius,
- double? fontSize,
- FontWeight? fontWeight,
- VoidCallback? onTap,
- BoxBorder? border,
- List<
BoxShadow> ? boxShadow, - Widget? prefixIcon,
- Widget? suffixIcon,
- Gradient? gradient,
- bool isLoading = false,
- bool isDisabled = false,
Creates a new AppButton.
Implementation
const AppButton({
super.key,
required this.text,
this.width,
this.height,
this.color,
this.textColor,
this.borderRadius,
this.fontSize,
this.fontWeight,
this.onTap,
this.border,
this.boxShadow,
this.prefixIcon,
this.suffixIcon,
this.gradient,
this.isLoading = false,
this.isDisabled = false,
});