CustomTextButton constructor

const CustomTextButton({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. String? title,
  4. double height = 52,
  5. Widget? child,
  6. Color buttonColor = AppColors.activButtonColor,
  7. double? buttonWidth,
  8. double? textFontSize,
  9. bool addBorder = false,
})

Implementation

const CustomTextButton({
  Key? key,
  required this.onPressed,
  this.title,
  this.height = 52,
  this.child,
  this.buttonColor = AppColors.activButtonColor,
  this.buttonWidth,
  this.textFontSize,
  this.addBorder = false,
})  : assert(
        title == null || child == null,
        'Cannot provide both a title and a child\n'
        'To provide both, use "child: Text(title)".',
      ),
      super(key: key);