PrimaryButton constructor

const PrimaryButton(
  1. {Key? key,
  2. required String text,
  3. dynamic onTap(
      )?,
    1. bool isLoading = false,
    2. bool isDisabled = false,
    3. double? fontSize,
    4. Widget? otherWidget,
    5. Color? buttonColor,
    6. TextStyle? textStyle,
    7. double? buttonHeight = 50,
    8. Color? borderColor,
    9. Widget? leadingWidget,
    10. 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);