Sitelet https://github.com/flutter/flutter/pull/191025
Skip to content

[flutter_tools] Add packages/flutter/examples to flutter create's whitelist - #191025

Merged
auto-submit[bot] merged 4 commits into
flutter:masterfrom
dkwingsmt:fix-create
Aug 13, 2026
Merged

auto-submit[bot] merged 4 commits into
flutter:masterfrom
dkwingsmt:fix-create

Conversation

@dkwingsmt

@dkwingsmt dkwingsmt commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

In #190481, the API docs were moved from <repo_root>/examples/api to <repo_root>/packages/flutter/examples/api.

flutter create is typically forbidden within Flutter's repo except for a few whitelisted directories. With the aforementioned migration, the whitelist should include the new API doc package as well.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Aug 12, 2026
@github-actions github-actions Bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Aug 12, 2026

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

Copy link
Copy Markdown
Contributor

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 support for creating projects within the packages/flutter/examples directory and refactors the corresponding tests into a parameterized loop. Feedback suggests simplifying the path construction in the test loop by using globals.fs.path.joinAll with the spread operator instead of accessing elements by index with elementAtOrNull.

Comment thread packages/flutter_tools/test/commands.shard/permeable/create_test.dart Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants