Skip to content

Add the ability to customize MaterialApp theme animation duration #78372

Closed

Description

@stx

Use case

A. I want a different animation duration than the one specified by kThemeAnimationDuration.

B. I want to control the properties of themed widgets using an animation controller, and want those to animate immediately and not according to the theme animation duration.

Proposal

  1. Add themeAnimationDuration to MaterialApp which is then passed to the created AnimatedTheme.

  2. Allow themeAnimationDuration to be overridden or ignored by some mechanism for specific widgets.

It's intuitive that wrapping a widget in AnimatedTheme(data: Theme.of(context), duration: const Duration()) would change the theming animation duration of the widget, but it does not.

Activity

  1. nt4f04uNd commented on Mar 17, 2021

    @nt4f04uNd
    Member

    triagers fyi there's a similar issue #70723
    i suspect this one is more spicific about proposal, so i don't mind mine being closed in favor of it

  2. pedromassangocode commented on Mar 17, 2021

    @pedromassangocode

    Hi @nt4f04uNd
    This one does not request disabling the theme animation but your does, If you still agree in closing yours in favor of this one, please feel free to close yours as a duplicate.

  3. added
    p: material_uimaterial_ui package in flutter/packages
    frameworkflutter/packages/flutter repository. See also f: labels.
    c: proposalA detailed proposal for a change to Flutter
    and removed
    in triagePresently being triaged by the triage team
    on Mar 17, 2021
  4. nt4f04uNd commented on Mar 17, 2021

    @nt4f04uNd
    Member

    This one does not request disabling the theme animation but your does

    OP provided an example with duration set to const Duration(), which essentially disables the animation. i'm closing #70723 in favor of this one

    also, that would probably make sense to have a control over the animation curvature

  5. self-assigned this
    on Mar 17, 2021
  6. saibotma commented on Dec 14, 2021

    @saibotma

    Would also be great if the curve could be adjusted? Is there a way?

  7. 17 remaining items

  8. moved this from Done (PR merged) to In progress in Nevercodeon Nov 20, 2023
  9. moved this from Done to In Progress in Design Systems Studyon Nov 20, 2023
  10. removed
    r: fixedIssue is closed as already fixed in a newer version
    on Nov 20, 2023
  11. moved this from In progress to PR submitted in Nevercodeon Nov 20, 2023
  12. moved this from PR submitted to Done (PR merged) in Nevercodeon Nov 20, 2023
  13. added
    r: fixedIssue is closed as already fixed in a newer version
    on Nov 21, 2023
  14. github-actions commented on Dec 5, 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.

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

Metadata

Metadata

Assignees

Labels

Design Systems StudyIssues identified during the custom design system study.a: animationAnimation APIsc: 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 team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions