PrimaryButton constructor

const PrimaryButton({
  1. Key? key,
  2. required String text,
  3. dynamic onTap()?,
  4. bool isLoading = false,
  5. bool isDisabled = false,
  6. double? fontSize,
  7. Widget? otherWidget,
  8. Color? buttonColor,
  9. TextStyle? textStyle,
  10. double? buttonHeight = 50,
  11. Color? borderColor,
  12. Widget? leadingWidget,
  13. double? buttonWidth,
})

Implementation

const PrimaryButton({
  Key? key,
  required this.text,
  this.onTap,
  this.isLoading = false,
  this.isDisabled = false,
  this.fontSize,
  this.otherWidget,
  this.buttonColor,
  this.textStyle,
  this.buttonHeight = 50,
  this.borderColor,
  this.leadingWidget,
  this.buttonWidth,
}) : super(key: key);