question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support setting orgainzation/language preferences for `Flutter: New Project`

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
DanTupcommented, May 17, 2018

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.

1reaction
devoncarewcommented, Feb 27, 2018

Hey, some thoughts:

  • most of the flutter create options are ~rare
  • a flutter create that generates the main project type captures most of the user cases
  • if we expose more create commands, I would say that the next candidates are a way to select the project template type to use (flutter create, flutter create --template=plugin, and flutter 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 single Flutter Create command
  • having users create projects via the command line - if they need to use the create options - is a reasonable escape value
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found