You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FloatingActionButtonThemeData disabled color #53502
FloatingActionButtonThemeData does not have disabled color. It would be a easy if it had, so dimming the floating action button when data fields are not filled could be done with one line of code.
gintas-mac:lifetrens gintas$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.16.3-pre.64, on Mac OS X 10.15.3 19D76, locale
en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.6)
[!] VS Code (version 1.43.2)
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available)
! Doctor found issues in 1 category.
If the FAB's foreground and background color properties could be MaterialStateColors, then we could add support for a disabled color without really changing the API. However a much nicer solution would be (still using the same API) to refactor FAB to be a ButtonStyleButton. There's an existing PR that's pretty far along: #53502
Activity
royarg02 commentedon Apr 26, 2020
I don't know whether it will be okay to have one, as Material design does not allow FABs to be disabled. It recommends it to be hidden instead.
https://material.io/design/interaction/states.html#disabled
Levi-Lesches commentedon Feb 4, 2021
Should that be the default behavior then? When
onPressed == null, hide the FAB?royarg02 commentedon Feb 4, 2021
It might be a good change, as
onPressed: nullmakes the FAB non-interactive, but still displays it. I checked for the following version:flutter-triage-bot commentedon Jul 16, 2023
This issue is missing a priority label. Please set a priority label when adding the
triaged-designlabel.HansMuller commentedon Jul 27, 2023
If the FAB's foreground and background color properties could be MaterialStateColors, then we could add support for a disabled color without really changing the API. However a much nicer solution would be (still using the same API) to refactor FAB to be a ButtonStyleButton. There's an existing PR that's pretty far along: #53502