GradientButton constructor
const
GradientButton({
- required String buttonText,
- required Function? handleTap,
- bool customRadius = false,
- double fontSize = AppConstants.fontMediumX,
- double height = 40,
- double width = 120,
- Widget? icon,
- FontWeight? fontWeight,
- bool isloading = false,
- TextStyle? customStyle,
- double borderRadius = 20,
- Color textColor = ColorConstants.white,
- EdgeInsets margin = EdgeInsets.zero,
- bool isDisabled = false,
- Key? key,
Implementation
const GradientButton({
required this.buttonText,
required this.handleTap,
this.customRadius = false,
this.fontSize = AppConstants.fontMediumX,
this.height = 40,
this.width = 120,
this.icon,
this.fontWeight,
this.isloading = false,
this.customStyle,
this.borderRadius = 20,
this.textColor = ColorConstants.white,
this.margin = EdgeInsets.zero,
this.isDisabled = false,
Key? key,
}) : super(key: key);