SubmitButton constructor

const SubmitButton(
  1. BuildContext context, {
  2. Key? key,
  3. String text = "",
  4. dynamic onPressed()?,
  5. bool isEnabled = true,
  6. bool isLoading = false,
  7. double? width,
  8. double height = 50,
  9. IconData? icon,
  10. Color? backgroundColor,
  11. Color? textColor,
  12. bool showSuccessState = false,
  13. bool showErrorState = false,
})

Implementation

const SubmitButton(
  BuildContext context, {
  super.key,
  this.text = "",
  this.onPressed,
  this.isEnabled = true,
  this.isLoading = false,
  this.width,
  this.height = 50,
  this.icon,
  this.backgroundColor,
  this.textColor,
  this.showSuccessState = false,
  this.showErrorState = false,
});