Skip to content

Support customizable page transition durations #42802

@shihaohong

Description

@shihaohong

The latest Android 10 activity transition occurs over 400ms. Currently, MaterialPageRoute has a transition duration that is set to a constant of 300ms.

We should create a new parameter so that developers can modify/customize the transition duration if they'd like. This also allows Flutter's Android 10 transition to have the correct transition duration.

  • Add MaterialPageRoute.transitionDuration parameter
  • If possible, add a new PageTransitionsTheme.transitionDuration property that is correctly looked up by all page route classes so that it needs to only be specified in one place instead of wherever a new page route is defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listf: cupertinoflutter/packages/flutter/cupertino repositoryf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions