Skip to content

docs: Add page transition builder reorganization guide#12914

Merged
sfshaza2 merged 2 commits intoflutter:mainfrom
rkishan516:page-transition-migration
Jan 12, 2026
Merged

docs: Add page transition builder reorganization guide#12914
sfshaza2 merged 2 commits intoflutter:mainfrom
rkishan516:page-transition-migration

Conversation

@rkishan516
Copy link
Contributor

Add migration guide for page transition builders reorganisation

_PRs or commits this PR depends on (if any): flutter/flutter#179776

Changes

  • Added src/content/release/breaking-changes/decouple-page-transition-builders.md with:
    • Overview of all page transition builders and their libraries
    • Background explaining why the reorganization was made
    • Simple migration guide (add Cupertino import)
  • Added entry to src/content/release/breaking-changes/index.md under "Not yet released to stable"

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.

@rkishan516 rkishan516 requested review from a team and sfshaza2 as code owners January 12, 2026 06:04
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @rkishan516, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces comprehensive documentation for a significant breaking change in Flutter's page transition builders. Specifically, it details the relocation of CupertinoPageTransitionsBuilder from the Material library to the Cupertino library to enhance code organization and reduce unnecessary dependencies. The new guide provides context for this change and offers clear instructions for developers to migrate their existing codebases, ensuring a smooth transition.

Highlights

  • New Documentation Page: A new guide, decouple-page-transition-builders.md, has been added to the breaking changes documentation.
  • CupertinoPageTransitionsBuilder Reorganization: The new guide explains that CupertinoPageTransitionsBuilder has been moved from package:flutter/material.dart to package:flutter/cupertino.dart for better code organization.
  • Migration Guide Included: The documentation provides a simple migration guide, advising users to add an import for package:flutter/cupertino.dart if they use CupertinoPageTransitionsBuilder and only import material.dart.
  • Breaking Changes Index Updated: An entry for the new guide has been added to src/content/release/breaking-changes/index.md under the 'Not yet released to stable' section.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new documentation page for the breaking change related to the reorganization of page transition builders. The new page is clear and well-structured. I've made a suggestion to improve conciseness. Additionally, the index.md file has been updated to include the new page, but the list of breaking changes is not alphabetically sorted as per the file's own guidelines. I've added a comment to address this maintainability issue.

* [Deprecate `findChildIndexCallback` in favor of `findItemIndexCallback` in `ListView` and `SliverList` separated constructors][]
* [Migrating Flutter Android app to Android Gradle Plugin 9.0.0][]
* [Material 3 tokens update][]
* [Page transition builders reorganization][]
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The guideline on line 35 states that this list should be sorted alphabetically. The list under 'Not yet released to stable' is not currently sorted. To improve maintainability and adhere to the guideline, please sort all items in this list alphabetically. The same principle should be applied to the reference links at the bottom of the section.

@flutter-website-bot
Copy link
Collaborator

flutter-website-bot commented Jan 12, 2026

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

https://flutter-docs-prod--pr12914-page-transition-migration-qw30veqh.web.app

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.

lgtm. Thanks!

…builders.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@sfshaza2 sfshaza2 merged commit 68f8ff3 into flutter:main Jan 12, 2026
10 checks passed
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.

3 participants