PrimaryButton constructor

const PrimaryButton({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. required String text,
  4. bool enabled = true,
  5. bool loading = false,
  6. ButtonStyle? style,
  7. Color? foregroundColor,
})

Implementation

const PrimaryButton({
  super.key,
  required this.onPressed,
  required this.text,
  this.enabled = true,
  this.loading = false,
  this.style,
  this.foregroundColor,
});