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
Support customizable page transition durations #42802
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.
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.
cc/ @HansMuller, this is the issue that I was struggling to find a solution for. The only way I could think of was to write some wrapper after making MaterialPageRoute's transitionDuration customizable like so:
However, that seems clunky and will force our users to use a new method to create new routes for their apps if they want something that adheres to PageTransitionsTheme that is not already a default transitionDuration for MaterialPageRoute.
Activity
[-]Create `MaterialPageRoute.transitionDuration` parameter[/-][+]Support customizable page transition durations[/+]shihaohong commentedon Oct 25, 2019
This is related to #29068
shihaohong commentedon Jan 14, 2020
cc/ @HansMuller, this is the issue that I was struggling to find a solution for. The only way I could think of was to write some wrapper after making MaterialPageRoute's transitionDuration customizable like so:
However, that seems clunky and will force our users to use a new method to create new routes for their apps if they want something that adheres to
PageTransitionsThemethat is not already a default transitionDuration forMaterialPageRoute.