CustomElevatedButton constructor
const
CustomElevatedButton({
- Key? key,
- String? title,
- required VoidCallback onPressed,
- TextStyle? textStyle,
- double height = 55,
- double minWidth = 100,
- Color buttonColor = AppColors.activButtonColor,
- Color buttonBorderColor = AppColors.borderButtonColor,
- Color textColor = AppColors.black,
- Color loaderColor = AppColors.white,
- Widget? titleWidget,
- bool addBorder = false,
- bool isBusy = false,
Implementation
const CustomElevatedButton({
Key? key,
this.title,
required this.onPressed,
this.textStyle,
this.height = 55,
this.minWidth = 100,
this.buttonColor = AppColors.activButtonColor,
this.buttonBorderColor = AppColors.borderButtonColor,
this.textColor = AppColors.black,
this.loaderColor = AppColors.white,
this.titleWidget,
this.addBorder = false,
this.isBusy = false,
}) : assert(
title == null || titleWidget == null,
'Cannot provide both a title and a child\n'
'To provide both, use "titleWidget: Text(title)".',
),
super(key: key);