FancyFab.extended constructor
const
FancyFab.extended({})
Creates an extended FloatingActionButton.
Use isEnabled
to avoid ternary statements for onPressed
— you can
disable the button with:
isEnabled: false
oronPressed: null
icon
, child
and isLoading
must not be null.
Implementation
const FancyFab.extended({
Key? key,
bool? isEnabled,
required VoidCallback? onPressed,
required Widget icon,
required Widget label,
bool isLoading = false,
Widget? loadingLabel,
Widget? loadingIndicator,
this.backgroundColor,
this.shape,
this.reverseChildren = false,
}) : super(
key: key,
isEnabled: isEnabled,
onPressed: onPressed,
icon: icon,
child: label,
isLoading: isLoading,
loadingIndicator: loadingIndicator,
loadingChild: loadingLabel,
);