Skip to content

Conversation

@justinmc
Copy link
Contributor

@justinmc justinmc commented Aug 4, 2025

This PR spawned out of flutter/flutter#165832 (comment). That PR will change the default page transition and turn on predictive back by default. While there is no API breakage, users may encounter test breakages in tests that indirectly depend on the default page transition and/or its duration. Several of these kinds of breakages were encountered in flutter/flutter#165832 in the framework tests, customer tests, and Google tests.

This PR should explain:

  • What predictive back is.
  • How to make sure an app supports predictive back.
  • What the new Fade Fowards page transition looks like.
  • How to manually change the page transition back to the old one.
  • How to write tests that don't depend on the page transition and its duration.

Issues fixed by this PR (if any): n/a

PRs or commits this PR depends on (if any): flutter/flutter#165832

Presubmit checklist

  • If you are unwilling, or unable, to sign the CLA, even for a tiny, one-word PR, please file an issue instead of a PR.
  • If this PR is not meant to land until a future stable release, mark it as draft with an explanation.
  • This PR follows the Google Developer Documentation Style Guidelines—for example, it doesn't use i.e. or e.g., and it avoids I and we (first-person pronouns).
  • This PR uses semantic line breaks
    of 80 characters or fewer.

@justinmc justinmc self-assigned this Aug 4, 2025
@justinmc justinmc changed the title Predictive back transition Predictive back transition breaking change announcement Aug 4, 2025
@sfshaza2
Copy link
Contributor

Just a reminder that we don't need to wait for a release to land this, @justinmc. Feel free to finish this PR and submit!

@sfshaza2 sfshaza2 added the review.await-update Awaiting Updates after Edits label Sep 25, 2025
@justinmc justinmc marked this pull request as ready for review November 12, 2025 22:07
@justinmc justinmc requested review from a team and sfshaza2 as code owners November 12, 2025 22:07
@justinmc
Copy link
Contributor Author

Sorry I missed the release with this Shams 😭

Copy link
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's ok, @justinmc. This is great! thx!

@sfshaza2 sfshaza2 removed the review.await-update Awaiting Updates after Edits label Nov 12, 2025
@flutter-website-bot
Copy link
Collaborator

Visit the preview URL for this PR (updated for commit 7603606):

https://flutter-docs-prod--pr12268-predictive-back-transition-8zkqbx5s.web.app

@parlough parlough merged commit 803b526 into main Nov 12, 2025
9 checks passed
@parlough parlough deleted the predictive-back-transition branch November 12, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants