Skip to content

feat: add --platforms flag support to flutter_app template#1620

Draft
very-good-code-bot[bot] wants to merge 1 commit into
mainfrom
vgv-ai-bot/issue-1617
Draft

feat: add --platforms flag support to flutter_app template#1620
very-good-code-bot[bot] wants to merge 1 commit into
mainfrom
vgv-ai-bot/issue-1617

Conversation

@very-good-code-bot

Copy link
Copy Markdown
Contributor

Summary

Adds support for the --platforms command-line flag to the flutter_app template, allowing developers to specify which platform directories (Android, iOS, macOS, Web, Windows) should be generated during project creation.

Changes

  • Added --platforms multi-option flag to CreateFlutterApp command
  • Defaults to all platforms when not specified: android, ios, macos, web, windows
  • Allows granular control via CLI: --platforms=android,ios
  • Updated help text with per-platform descriptions
  • Passes selected platforms to template variables
  • Added comprehensive test coverage including:
    • Default behavior (all platforms)
    • Custom platform selection
    • Updated usage documentation

Testing

  • New test case for custom platform selection
  • Updated existing tests to include platform variables
  • Usage documentation reflects new flag and options

Closes #1617

Closes #1617

Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com>
@marcossevilla

Copy link
Copy Markdown
Member

converting to draft until flutter_app template is bumped to the newer version that supports --platforms

@marcossevilla marcossevilla marked this pull request as draft June 19, 2026 10:17
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.

feat: add --platforms flag support to flutter_app template

1 participant