Skip to content

Conversation

@vashworth
Copy link
Contributor

Description of what this PR is changing or adding, and why:

This change moves the plugin migration guide to the bottom so app migrations are first.

This also adds a warning that plugin APIs are not available on stable yet.

Issues fixed by this PR (if any):

PRs or commits this PR depends on (if any):

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.

@vashworth vashworth requested review from a team and sfshaza2 as code owners October 23, 2025 19:05
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @vashworth, 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 refines the UISceneDelegate migration documentation by restructuring the content for better readability and flow. It prioritizes app migration guides over plugin-specific instructions and adds a critical warning regarding the beta status of Flutter APIs required for plugin migration, ensuring developers are aware of current limitations.

Highlights

  • Documentation Reordering: The "Migration guide for Flutter plugins" section has been repositioned to appear after the "Migration guide for Flutter apps" and "Migration guide for adding Flutter to existing app" sections, prioritizing app-level migrations for better flow.
  • Plugin API Availability Warning: A new warning has been added to the plugin migration guide, informing users that the required Flutter APIs for UISceneDelegate are currently only available in beta releases and not yet on stable.
  • Updated Plugin Migration Steps: The plugin migration guide now includes an initial step advising users to update their Flutter SDK version in pubspec.yaml to access the necessary APIs.
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.

yet available on stable. You may consider publishing a
[prerelease version](https://dart.dev/tools/pub/publishing#publishing-prereleases)
of your plugin to migrate early.
:::
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@stuartmorgan-g What do you think of this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Reading the docs again, I think we want to say "prerelease or preview version". Either works for this scenario, and I think preview is actually more likely to be what people would want to do if they do either.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you sure previews work for the Flutter SDK? The docs make it sound specific to the Dart SDK version

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not 100% sure that it trigger the pub.dev preview if you only set the Flutter SDK, but you could just set both: the Flutter SDK to the version you need, and the Dart SDK to the version of Dart that shipped with that version of Flutter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, updated.

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 PR updates the plugin migration instructions by reordering the sections and adding a warning about API availability. The changes are logical and improve the structure of the document. I've left a few comments to improve the clarity and correctness of the documentation:

  • A suggestion to fix a line that exceeds the 80-character limit.
  • A request for clarification on an ambiguous instruction.
  • Corrections for invalid code examples in both Swift and Objective-C to ensure they are compilable.
    Addressing these points will improve the quality of the guide for developers.

@flutter-website-bot
Copy link
Collaborator

flutter-website-bot commented Oct 23, 2025

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

https://flutter-docs-prod--pr12591-uiscene-plugin-migration-up-5us3luoq.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.

I've made some minor formatting fixes. Once Victoria's/bot's questions are answered, lgtm

@vashworth
Copy link
Contributor Author

@sfshaza2 This is ready to merge now!

@sfshaza2 sfshaza2 merged commit 6e31a22 into flutter:main Oct 27, 2025
9 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.

4 participants