PrimaryButton constructor
const
PrimaryButton(- {Key? key,
- required String text,
- dynamic onTap(
)?,
- bool isLoading = false,
- bool isDisabled = false,
- double? fontSize,
- Widget? otherWidget,
- Color? buttonColor,
- TextStyle? textStyle,
- double? buttonHeight = 50,
- Color? borderColor,
- Widget? leadingWidget,
- 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);