diff --git a/lib/src/components/fabs/fab.dart b/lib/src/components/fabs/fab.dart index f091510c..e05ea4c5 100644 --- a/lib/src/components/fabs/fab.dart +++ b/lib/src/components/fabs/fab.dart @@ -117,9 +117,15 @@ class _ZetaFABState extends State { padding: const WidgetStatePropertyAll(EdgeInsets.zero), shape: WidgetStatePropertyAll(widget.shape.buttonShape(isExpanded: isExpanded, size: widget.size)), backgroundColor: WidgetStateProperty.resolveWith((states) { - if (states.contains(WidgetState.disabled)) return Zeta.of(context).colors.surfaceDisabled; - if (states.contains(WidgetState.hovered)) return colors.hover; - if (states.contains(WidgetState.pressed)) return colors.selected; + if (states.contains(WidgetState.disabled)) { + return Zeta.of(context).colors.surfaceDisabled; + } + if (states.contains(WidgetState.hovered)) { + return colors.hover; + } + if (states.contains(WidgetState.pressed)) { + return colors.selected; + } return backgroundColor; }), side: WidgetStateProperty.resolveWith(