FastButton constructor
const
FastButton({
- Key? key,
- required String label,
- VoidCallback? onPressed,
- bool? loading,
- Color? background,
- Color? color,
- double? radius,
- double? elevation,
- 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,
});