Skip to content

Add the ability to customize MaterialApp theme animation duration #78372

@stx

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.

Metadata

Metadata

Assignees

Labels

Design Systems StudyIssues identified during the custom design system study.a: animationAnimation APIsc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages team

Type

No type

Projects

Status

Done (PR merged)

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions