PrimaryButton constructor

const PrimaryButton({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required String text,
  4. ButtonMode mode = ButtonMode.confirm,
  5. double? width,
  6. double height = 45,
  7. ButtonConfig? style,
})

Implementation

const PrimaryButton({
  super.key,
  required this.onPressed,
  required this.text,
  this.mode = ButtonMode.confirm,
  this.width,
  this.height = 45,
  this.style,
});