FastButton constructor

const FastButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. bool? loading,
  5. Color? background,
  6. Color? color,
  7. double? radius,
  8. double? elevation,
  9. ButtonVariant variant = ButtonVariant.contained,
})

FastButton is a button with a lot of customizations

FastButton(
  label: 'go to PageContent',
  onPressed: () {
    context.push(const PageContent());
  },
),

Implementation

const FastButton({
  super.key,
  required this.label,
  this.onPressed,
  this.loading,
  this.background,
  this.color,
  this.radius,
  this.elevation,
  this.variant = ButtonVariant.contained,
});