Skip to content

Conversation

@parlough
Copy link
Member

@parlough parlough commented Nov 18, 2025

For a simpler developer experience and to avoid needing updates.

@parlough parlough requested review from a team and sfshaza2 as code owners November 18, 2025 19:01
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @parlough, 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 GenUI getting started documentation by modernizing the instructions for adding Dart/Flutter package dependencies. It transitions from advising manual edits to the pubspec.yaml file to recommending the use of the dart pub add command, which is the preferred and more convenient method for managing dependencies. This change enhances the clarity and user-friendliness of the setup guide for developers.

Highlights

  • Dependency Management: The documentation for getting started with GenUI now recommends using the dart pub add command for installing genui and genui_firebase_ai, replacing the previous manual pubspec.yaml editing instructions.
  • Custom Widget Setup: Instructions for adding custom widgets have been updated to utilize dart pub add json_schema_builder for dependency installation, streamlining the process.
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.

@parlough parlough changed the title Rely on dart pub add in GenUI getting started Rely on dart pub add in GenUI getting started Nov 18, 2025
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 updates the 'Get started' documentation to recommend using dart pub add for adding dependencies, which is a good practice that simplifies the setup process. While this is a positive change, I have identified a potential issue where the simplification might have removed a crucial detail about version compatibility for an experimental package. My review comment highlights this concern to ensure the documentation remains accurate and helps users avoid potential dependency conflicts.

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.

thx! lgtm

@flutter-website-bot
Copy link
Collaborator

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

https://flutter-docs-prod--pr12720-misc-genui-use-dart-pub-add-f8fjzxqs.web.app

@parlough parlough merged commit 598cf54 into main Nov 18, 2025
9 checks passed
@parlough parlough deleted the misc/genui-use-dart-pub-add branch November 18, 2025 19:15
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