Skip to content

fix: remove unsupported iOS/Android language flags from flutter create#294

Merged
CpdnCristiano merged 1 commit intojonataslaw:masterfrom
noblebuildsai:fix/remove-unsupported-flags
Feb 2, 2026
Merged

fix: remove unsupported iOS/Android language flags from flutter create#294
CpdnCristiano merged 1 commit intojonataslaw:masterfrom
noblebuildsai:fix/remove-unsupported-flags

Conversation

@noblebuildsai
Copy link
Contributor

Problem

When creating a Flutter project using:
get create project:"my cool project"

the CLI was passing -i swift -a kotlin to flutter create, which caused the
following error:

The "ios-language" option is only supported for "--template=plugin"

Solution

Removed the -i and -a flags from the flutter create command because:

  • These flags are only supported for plugin templates (--template=plugin)
  • For regular Flutter projects, Flutter already defaults to Swift and Kotlin
  • Passing these flags was unnecessary and caused project creation to fail

Testing

  • Tested locally by creating a project with spaces in the name
  • Project creation now succeeds without errors
  • Flutter still uses Swift/Kotlin by default (as expected)

The -i (ios-language) and -a (android-language) flags are only supported for plugin templates, not regular Flutter projects.

This was causing the error: The ios-language option is only supported for --template=plugin.

Flutter uses Swift/Kotlin by default for regular projects, so these flags are not needed.
@CpdnCristiano CpdnCristiano merged commit 300c65b into jonataslaw:master Feb 2, 2026
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.

2 participants