CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String text,
  3. bool inverseColor = false,
  4. Widget? leadingIcon,
  5. required Function onPressed,
  6. Color backgroundColor = primary,
  7. Color textColor = white,
  8. double height = 50,
  9. Gradient? gradient,
  10. TextStyle? textStyle,
})

Implementation

const CustomButton({
  super.key,
  required this.text,
  this.inverseColor = false,
  this.leadingIcon,
  required this.onPressed,
  this.backgroundColor = primary,
  this.textColor = white,
  this.height = 50,
  this.gradient,
  this.textStyle,
});