-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add AI top-level section and restructure existing AI docs #13264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6a372bf
navigation: add AI tab to top-level header
lamek f0b9032
Fix AI top level heading link to use relative path for local dev support
lamek 89f608b
Reorganize AI landing page and sidebar into two clear thematic pillars
lamek aa74813
Address AI PR review feedback and add missing placeholder pages
lamek a085372
Reorganize AI docs: add Coding Assistants page, update links, and rem…
lamek 9157966
Fix tutorial sidenav, update Learn link, and finalize AI docs structure
lamek e466ef7
Resolve merge conflicts with upstream and finalize AI docs
lamek b7aef38
Format dash_layout.dart
lamek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| --- | ||
| title: Custom LLM providers | ||
| sidenav: ai | ||
| description: > | ||
| How to integrate with other Flutter features. | ||
| prev: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| --- | ||
| title: Feature integration | ||
| sidenav: ai | ||
| description: > | ||
| How to integrate with other Flutter features. | ||
| prev: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| --- | ||
| title: AI Coding Assistants | ||
| sidenav: ai | ||
| description: > | ||
| Learn how to use AI-powered coding assistants like Antigravity and Gemini CLI | ||
| to accelerate your Flutter development. | ||
| --- | ||
|
|
||
| AI tools are not only features in your app, but can also be powerful assistants in your development workflow. Tools like Antigravity and Gemini CLI can help you write code faster, understand complex concepts, and reduce boilerplate. | ||
|
|
||
| ## Antigravity | ||
|
|
||
| [Antigravity](https://antigravity.google/) is an in-IDE AI agent that can read and write code, run terminal commands, and help you build complex features. Some of its capabilities include: | ||
|
|
||
| * **Agentic capabilities**: Unlike chat-based assistants, Antigravity can proactively edit files and run terminal commands to complete tasks. | ||
| * **Complex reasoning**: It can plan and execute multi-step workflows which makes it suitable for larger refactors or feature implementations. | ||
| * **Verification**: It can run tests and verify its own changes to ensure correctness. | ||
|
|
||
| <YouTubeEmbed | ||
| id="YY2w2JEX2xk" | ||
| title="Flutter + Antigravity in 10 minutes"> | ||
| </YouTubeEmbed> | ||
|
|
||
| ## Gemini CLI | ||
|
|
||
| The [Gemini CLI](https://geminicli.com/) is a command-line AI workflow tool. It allows you to interact with Gemini models for a variety of tasks without leaving your development environment. You can use it to: | ||
|
|
||
| * Quickly scaffold a new Flutter widget, Dart function, or a complete app. | ||
| * Use MCP server tools, such as the Dart and Flutter MCP server. | ||
| * Automate tasks like committing and pushing changes to a Git repository. | ||
|
|
||
| To get started, visit the [Gemini CLI](https://geminicli.com/) website, or try this [Gemini CLI codelab](https://codelabs.developers.google.com/gemini-cli-hands-on). | ||
|
|
||
| ## Flutter extension for Gemini CLI | ||
|
|
||
| The [Flutter extension for Gemini CLI]({{site.github}}/gemini-cli-extensions/flutter) combines the [Dart and Flutter MCP server]({{site.dart-site}}/tools/mcp-server) with rules and commands. It uses the default set of [AI rules for Flutter and Dart](/ai/ai-rules), adds commands like `/create-app` and `/modify` to make structured changes to your app, and automatically configures the [Dart and Flutter MCP server]({{site.dart-site}}/tools/mcp-server). | ||
|
|
||
| You can install it by running the following command: | ||
|
|
||
| ```bash | ||
| gemini extensions install https://github.com/gemini-cli-extensions/flutter | ||
| ``` | ||
|
|
||
| To learn more, check out [Flutter extension for Gemini CLI](/ai/gemini-cli-extension). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| --- | ||
| title: Flutter & AI | ||
| sidenav: ai | ||
| shortTitle: AI | ||
| layout: toc | ||
| description: >- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| - title: AI with Flutter | ||
| permalink: /ai/create-with-ai | ||
|
|
||
| - title: Develop with AI | ||
| expanded: true | ||
| children: | ||
| - title: Rules for Flutter and Dart | ||
| permalink: /ai/ai-rules | ||
| - title: Dart & Flutter MCP server | ||
| permalink: /ai/mcp-server | ||
| - title: AI Coding Assistants | ||
| permalink: /ai/coding-assistants | ||
| children: | ||
| - title: Overview | ||
| permalink: /ai/coding-assistants | ||
| - title: Flutter extension for Gemini CLI | ||
| permalink: /ai/gemini-cli-extension | ||
| - title: Developer Experience | ||
| permalink: /ai/best-practices/developer-experience | ||
|
|
||
| - title: Build AI-powered apps | ||
| expanded: true | ||
| children: | ||
| - title: Firebase AI Logic | ||
| permalink: https://firebase.google.com/docs/ai-logic/get-started?platform=flutter | ||
| - title: GenUI SDK for Flutter | ||
| permalink: /ai/genui | ||
| children: | ||
| - title: Overview | ||
| permalink: /ai/genui | ||
| - title: Main components & concepts | ||
| permalink: /ai/genui/components | ||
| - title: Get started | ||
| permalink: /ai/genui/get-started | ||
| - title: Input and events | ||
| permalink: /ai/genui/input-events | ||
| - title: Flutter AI Toolkit | ||
| permalink: /ai/ai-toolkit | ||
| children: | ||
| - title: Overview | ||
| permalink: /ai/ai-toolkit | ||
| - title: User experience | ||
| permalink: /ai/ai-toolkit/user-experience | ||
| - title: Feature integration | ||
| permalink: /ai/ai-toolkit/feature-integration | ||
| - title: Custom LLM providers | ||
| permalink: /ai/ai-toolkit/custom-llm-providers | ||
| - title: Chat client sample | ||
| permalink: /ai/ai-toolkit/chat-client-sample | ||
| - title: AI Best Practices | ||
| permalink: /ai/best-practices | ||
| children: | ||
| - title: Overview | ||
| permalink: /ai/best-practices | ||
| - title: Prompting | ||
| permalink: /ai/best-practices/prompting | ||
| - title: Structure & output | ||
| permalink: /ai/best-practices/structure-output | ||
| - title: Tool calls (aka function calls) | ||
| permalink: /ai/best-practices/tool-calls | ||
| - title: Mode of interaction | ||
| permalink: /ai/best-practices/mode-of-interaction |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When adding a new top-level navigation entry like AI, ensure it is also mirrored in the
DashSideNavcomponent (site/lib/src/components/layout/sidenav.dart) and registered in thepathSidenavsmap insite/lib/src/layouts/dash_layout.dart. Currently, these updates are missing, which will prevent the AI-specific sidebar from appearing and break navigation consistency on mobile views.