Skip to content

Add support for creating an "empty" project #4268

Closed

Description

@gspencergoog

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.

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Nov 15, 2022
  2. DanTup commented on Nov 16, 2022

    @DanTup
    Member

    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?

  3. DanTup commented on Nov 16, 2022

    @DanTup
    Member

    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?)

  4. added
    in flutterRelates to running Flutter apps
    in commandsRelates to commands (usually invoked from the command Palette)
    on Nov 16, 2022
  5. gspencergoog commented on Nov 16, 2022

    @gspencergoog
    Author

    What you have works for me.

  6. added a commit that references this issue on Sep 2, 2025
    a9c0e9a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in commandsRelates to commands (usually invoked from the command Palette)in flutterRelates to running Flutter appsis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions