CustomElevatedButton constructor

const CustomElevatedButton({
  1. Key? key,
  2. String? title,
  3. required VoidCallback onPressed,
  4. TextStyle? textStyle,
  5. double height = 55,
  6. double minWidth = 100,
  7. Color buttonColor = AppColors.activButtonColor,
  8. Color buttonBorderColor = AppColors.borderButtonColor,
  9. Color textColor = AppColors.black,
  10. Color loaderColor = AppColors.white,
  11. Widget? titleWidget,
  12. bool addBorder = false,
  13. 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);