AppButton constructor

const AppButton(
  1. String text, {
  2. Key? key,
  3. VoidCallback? onPressed,
  4. Widget? icon,
  5. bool loading = false,
  6. bool disabled = false,
  7. ButtonType type = ButtonType.normal,
  8. double borderRadius = 10.0,
  9. double borderWidth = 1,
  10. Color? borderColor,
  11. Color? textColor,
  12. Color? color,
  13. double elevation = 0,
  14. double fontSize = 14,
  15. MainAxisSize axisSize = MainAxisSize.max,
})

Implementation

const AppButton(
  this.text, {
  Key? key,
  this.onPressed,
  this.icon,
  this.loading = false,
  this.disabled = false,
  this.type = ButtonType.normal,
  this.borderRadius = 10.0,
  this.borderWidth = 1,
  this.borderColor,
  this.textColor,
  this.color,
  this.elevation = 0,
  this.fontSize = 14,
  this.axisSize = MainAxisSize.max,
}) : super(key: key);