CustomButton constructor
const
CustomButton({
- Key? key,
- required String text,
- VoidCallback? onTap,
- Color? backgroundColor,
- Color? textColor,
- double? height,
- double? width,
- double? fontSize,
- double? borderRadius,
- double? elevation,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Widget? leading,
- bool showBorder = false,
- Color? borderColor,
- bool isLoading = false,
Implementation
const CustomButton({
super.key,
required this.text,
this.onTap,
this.backgroundColor,
this.textColor,
this.height,
this.width,
this.fontSize,
this.borderRadius,
this.elevation,
this.padding,
this.margin,
this.leading,
this.showBorder = false,
this.borderColor,
this.isLoading = false,
});