Skip to content

Expose animation parameters for the [ExpansionTile] widget #138047

Closed

Description

@matheuskirchesch

Is there an existing issue for this?

Use case

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.
image
image

Activity

  1. matheuskirchesch commented on Nov 8, 2023

    @matheuskirchesch
    ContributorAuthor

    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.

  2. added
    in triagePresently being triaged by the triage team
    c: new featureNothing broken; request for a new capability
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    c: proposalA detailed proposal for a change to Flutter
    team-designOwned by Design Languages team
    and removed
    in triagePresently being triaged by the triage team
    on Nov 8, 2023
  3. HansMuller commented on Nov 9, 2023

    @HansMuller
    Contributor

    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.

  4. added
    P2Important issues not at the top of the work list
    triaged-designTriaged by Design Languages team
    on Nov 9, 2023
  5. self-assigned this
    on Nov 9, 2023
  6. moved this from To do to Done (PR merged) in Nevercodeon Nov 9, 2023
  7. moved this from Done (PR merged) to In progress in Nevercodeon Nov 9, 2023
  8. TahaTesser commented on Nov 9, 2023

    @TahaTesser
    Contributor

    @matheus-kirchesch-btor
    I plan to add the upcoming AnimationStyle class to this widget.

  9. moved this from In progress to PR submitted in Nevercodeon Dec 6, 2023
  10. moved this from PR submitted to Done (PR merged) in Nevercodeon Dec 6, 2023
  11. added
    r: fixedIssue is closed as already fixed in a newer version
    on Dec 7, 2023
  12. github-actions commented on Dec 21, 2023

    @github-actions

    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.

  13. locked as resolved and limited conversation to collaborators on Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

  • Status
    Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions