Skip to content

[FloatingActionButton] Use the current labelOpacity as the initial animation value#4696

Closed
pubiqq wants to merge 1 commit intomaterial-components:masterfrom
pubiqq:fab/use-current-label-opacity-as-initial
Closed

[FloatingActionButton] Use the current labelOpacity as the initial animation value#4696
pubiqq wants to merge 1 commit intomaterial-components:masterfrom
pubiqq:fab/use-current-label-opacity-as-initial

Conversation

@pubiqq
Copy link
Copy Markdown
Contributor

@pubiqq pubiqq commented Mar 19, 2025

The PR makes labelOpacity animate from the FAB's current opacity value, rather than a value that is opposite the target value. This change fixes the blink that occurs when a button is animated from an intermediate state.

--

P.S. Originally posted by @pubiqq in #4595 (comment).

@pubiqq pubiqq mentioned this pull request Nov 11, 2024
@pubiqq pubiqq force-pushed the fab/use-current-label-opacity-as-initial branch from 0fe721d to 3a1aa13 Compare May 12, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant