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