BaseButton constructor

const BaseButton({
  1. Key? key,
  2. required String title,
  3. required VoidCallback onPressed,
  4. ButtonType type = ButtonType.primary,
  5. bool isFillWidth = false,
  6. bool isDisabled = false,
  7. Color? color,
  8. Color? borderColor,
  9. double? height,
  10. Color? textColor,
  11. double? paddingVertical,
  12. double? paddingHorizontal,
  13. BorderRadiusGeometry? borderRadius,
  14. double? fontSize,
})

Implementation

const BaseButton({
  super.key,
  required this.title,
  required this.onPressed,
  this.type = ButtonType.primary,
  this.isFillWidth = false,
  this.isDisabled = false,
  this.color,
  this.borderColor,
  this.height,
  this.textColor,
  this.paddingVertical,
  this.paddingHorizontal,
  this.borderRadius,
  this.fontSize,
});