Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for creating an "empty" project #4268

Closed
gspencergoog opened this issue Nov 15, 2022 · 3 comments
Closed

Add support for creating an "empty" project #4268

gspencergoog opened this issue Nov 15, 2022 · 3 comments
Labels
in commands Relates to commands (usually invoked from the command Palette) in flutter Relates to running Flutter apps is enhancement
Milestone

Comments

@gspencergoog
Copy link

gspencergoog commented Nov 15, 2022

Flutter recently added an option to flutter create to create an empty project that doesn't have any comments, the code is just a hello world instead of the counter app, and there's no test directory. The flag is --empty.

It would be nice to add the option to the VSCode extension to allow people to create an empty project instead of one that has the counter app in it. I'm not sure how that should manifest, it could either be an option setting that modifies the "Flutter: New Project" command, or an additional "Flutter: New Empty Project" command, I'm not sure which is more appropriate (maybe the latter?).

For context, see this comment, the PR that added the flag: flutter/flutter#113873, and the related IntelliJ feature request.

@DanTup
Copy link
Member

DanTup commented Nov 16, 2022

Looks like this - let me know if you want any tweaks to it. It'll only show up for a Flutter SDK >= 3.6.0-3 (the current version I just pulled).

Screenshot 2022-11-16 at 10 54 13

Btw, right now flutter create creates folders for all platforms (if you don't pass them explicitly), even Windows when I'm on macOS - is that expected?

@DanTup DanTup closed this as completed in a9c0e9a Nov 16, 2022
@DanTup
Copy link
Member

DanTup commented Nov 16, 2022

I just realised you noted:

or an additional "Flutter: New Empty Project" command, I'm not sure which is more appropriate (maybe the latter?).

We can do that, although I think it would be better to have a single command (there's no confusion of multiple commands, and we can show this additional descriptive text shown above). If you think this is the one people will use most, we could push it to the top (and perhaps rename from "Application" vs "Application (empty)" to something like "Empty Application" and "(Sample?) Counter Application" or something?)

@DanTup DanTup added in flutter Relates to running Flutter apps in commands Relates to commands (usually invoked from the command Palette) labels Nov 16, 2022
@DanTup DanTup modified the milestones: v3.54.0, Requires SDK Release Nov 16, 2022
@gspencergoog
Copy link
Author

What you have works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in commands Relates to commands (usually invoked from the command Palette) in flutter Relates to running Flutter apps is enhancement
Projects
None yet
Development

No branches or pull requests

2 participants