You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?).
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).
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?
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?)
Activity
DanTup commentedon 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).Btw, right now
flutter createcreates folders for all platforms (if you don't pass them explicitly), even Windows when I'm on macOS - is that expected?DanTup commentedon Nov 16, 2022
I just realised you noted:
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?)
gspencergoog commentedon Nov 16, 2022
What you have works for me.
Add support for creating empty Flutter applications