ButtonPrimary constructor

const ButtonPrimary(
  1. String label,
  2. VoidCallback? onPressed, {
  3. Key? key,
  4. Color btnColor = Colours.accent,
  5. Color btnOutlineColor = Colours.accent,
  6. Color labelColor = Colors.white,
  7. FontWeight labelFontWeight = FontWeight.w700,
  8. double horizontalPadding = 0,
  9. bool showSpinner = false,
})

Implementation

const ButtonPrimary(
  this.label,
  this.onPressed,
{ Key? key,
  this.btnColor = Colours.accent,
  this.btnOutlineColor = Colours.accent,
  this.labelColor = Colors.white,
  this.labelFontWeight = FontWeight.w700,
  this.horizontalPadding = 0,
  this.showSpinner = false
}) : super(key: key);