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
Expose animation parameters for the [ExpansionTile] widget #138047
The default ExpansionTile animation looks glitchy because the speeds in which the tile expands and collapses are different.
I will post 3 videos comparing the default one, one with a linear curve and another one with a linear curve and a little longer duration so what I mean is more clear.
Default ExpansionTile animation
Screen_Recording_20231107_203914.mp4
ExpansionTile with linear curve
Screen_Recording_20231107_204001.mp4
ExpansionTile with linear curve and a little longer animation (a little bit smoother)
Screen_Recording_20231107_204258.mp4
Proposal
The proposed fix is simply to expose parameters to let us control the curve and duration of the expansion animation.
CC @TahaTesser
The approach we're considering for overriding animation parameters is described here: #137945 and could be applied to ExpansionTile. We'd appreciate your feedback on #137945 if you have time to take a look.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
matheuskirchesch commentedon Nov 8, 2023
I have found a more natural solution, which was to just wait for one to close to then start opening the next.
But I still think it is good to expose those variables, will probably open a PR.
HansMuller commentedon Nov 9, 2023
CC @TahaTesser
The approach we're considering for overriding animation parameters is described here: #137945 and could be applied to ExpansionTile. We'd appreciate your feedback on #137945 if you have time to take a look.
TahaTesser commentedon Nov 9, 2023
@matheus-kirchesch-btor
I plan to add the upcoming
AnimationStyleclass to this widget.Add `AnimationStyle` to `ExpansionTile` (#139664)
github-actions commentedon Dec 21, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.