CustomButton constructor
const
CustomButton({
- Key? key,
- double? height,
- double? width,
- bool? withEffect = true,
- required Function onTap,
- required String text,
- Color? buttonColor = whiteColor,
- TextDecoration? textDecoration = TextDecoration.none,
- Color? textColor = blackColor,
- double? radius = 10.0,
- TextAlign? textAlign = TextAlign.center,
- FontWeight? fontWeight = fontWeigh500,
- EdgeInsetsGeometry? padding = EdgeInsets.zero,
- Widget? progressIndicator = const CircularProgressIndicator(strokeWidth: 6, valueColor: AlwaysStoppedAnimation<Color>(whiteColor)),
- bool? isLoading = false,
Implementation
const CustomButton({
Key? key,
this.height,
this.width,
this.withEffect = true,
required this.onTap,
required this.text,
this.buttonColor = whiteColor,
this.textDecoration = TextDecoration.none,
this.textColor = blackColor,
this.radius = 10.0,
this.textAlign = TextAlign.center,
this.fontWeight = fontWeigh500,
this.padding = EdgeInsets.zero,
this.progressIndicator = const CircularProgressIndicator(
strokeWidth: 6, valueColor: AlwaysStoppedAnimation<Color>(whiteColor)),
this.isLoading = false,
}) : super(key: key);