flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
162.18k stars 26.64k forks source link

Add ability to disable `FloatingActionButton` scale and rotation animations using `FloatingActionButtonAnimator.noAnimation` #146126

Closed TahaTesser closed 2 weeks ago

TahaTesser commented 1 month ago

fixes [Proposal] Allow disabling the scaling animation of the FloatingActionButton

Using default FloatingActionButton animations

ScreenRecording2024-04-02at16 19 03-ezgif com-video-to-gif-converter

Using FloatingActionButtonAnimator.noAnimation

ScreenRecording2024-04-02at16 17 20-ezgif com-video-to-gif-converter

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

TahaTesser commented 2 weeks ago

@HansMuller Resolved conflict in scaffold.dart and updated the branch. This introduces FloatingActionButtonAnimator.noAnimation specifically to disable FAB entry and exit animations.