Support setting orgainzation/language preferences for `Flutter: New Project`
See original GitHub issueThe flutter create
command has a number of option flags that can be set to control its output. It would be useful to be able to set those from the New Project command:
- –[no-]pub
- –[no-]offline
- –[no-]with-driver-test
- -t, --template=<type> [app (default), package, plugin]
- –description
- –org
- -i, --ios-language [objc (default), swift]
- -a, --android-language [java (default), kotlin]
Specifically org
and description
are ones that I never leave to their default values, and selecting a template is useful for quick-starting non-app projects.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Android Studio and IntelliJ - Flutter documentation
Right-click the android folder in the Project view, and select Open Module Settings. In the Sources tab, locate the Language level field, and...
Read more >Flutter: How to create a new project - Stack Overflow
Go to File -> Preferences -> Settings, search for flutter create organization. Edit your settings.json file and edit "dart.
Read more >Settings - Dart & Flutter support for Visual Studio Code
The organization responsible for your new Flutter project, in reverse domain name notation (e.g. com.google ). This string is used in Java package...
Read more >Android Studio Setup for Flutter Development - GeeksforGeeks
Note: When creating a new Flutter app, some Flutter IDE plugins ask for a company domain name in reverse order, something like com.example....
Read more >How to Create a New Project In Flutter?
In Visual Studio Code, you need to set up your organization first. Go to File -> Preferences -> Settings, search for flutter create...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve added three new settings:
dart.flutterCreateOrganization
dart.flutterCreateIOSLanguage
dart.flutterCreateAndroidLanguage
The first is a string, the other two enums. These can be set in your user settings, and will be passed to
flutter create
.I don’t think it makes sense to have description as an option since it’ll change from project to project. I’m on the fence about whether we should prompts during creation. The command was aimed at new users and I think asking them to enter a reverse domain for their company when they’re probably creating a throwaway test app makes getting started less straight forward.
I think probably we should ship just with these options for now and see if it covers most cases, and we can refine later. So, I’m gonna close this with the work I’ve done; but do feel free to open additional issues if you think we need more and we can revisit for a future release.
Hey, some thoughts:
flutter create
that generates the main project type captures most of the user casesflutter create
,flutter create --template=plugin
, andflutter create --template=package
) - these could be done via two additional commands. I’m not sure of the value of this over just the simplicity of a singleFlutter Create
command