Skip to content

Conversation

@jmagman
Copy link
Member

@jmagman jmagman commented Nov 4, 2021

Suppress long list of created files on a new flutter create. When flutter create is run again for the same project, it does show the (hopefully much shorter) file creation list.

App

$ flutter create test_123
Creating project test_123...
Running "flutter pub get" in test_123...                         1,409ms
Wrote 128 files.

All done!
In order to run your application, type:

  $ cd test_123
  $ flutter run

Your application code is in test_123/lib/main.dart.

Remove a file, then re-flutter create shows the created files (I don't know why it says "Wrote 4 files" when only one was created, it has the same behavior on master...)

$ rm test_123/lib/main.dart
$ flutter create test_123
Recreating project test_123...
  test_123/lib/main.dart (created)
Running "flutter pub get" in test_123...                           464ms
Wrote 4 files.

All done!
In order to run your application, type:

  $ cd test_123
  $ flutter run

Your application code is in test_123/lib/main.dart.

Plugin

$ flutter create -t plugin test_123
Creating project test_123...
Running "flutter pub get" in test_123...                         1,192ms
Running "flutter pub get" in example...                          1,087ms
Wrote 27 files.

All done!

Your plugin code is in test_123/lib/test_123.dart.

Your example app code is in test_123/example/lib/main.dart.


You've created a plugin project that doesn't yet support any platforms.


To add platforms, run `flutter create -t plugin --platforms <platforms> .` under test_123.
For more information, see https://flutter.dev/go/plugin-platforms.

Module

$ flutter create -t module test_123
Creating project test_123...
Running "flutter pub get" in test_123...                         1,058ms
Wrote 12 files.

All done!
Your module code is in test_123/lib/main.dart.

Package

$ flutter create -t package test_123
Creating project test_123...
Running "flutter pub get" in test_123...                         1,084ms
Wrote 13 files.

All done!
Your package code is in test_123/lib/test_123.dart

Fixes #93036

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Nov 4, 2021
@jmagman jmagman self-assigned this Nov 4, 2021
@google-cla google-cla bot added the cla: yes label Nov 4, 2021
@zanderso
Copy link
Member

zanderso commented Nov 4, 2021

The web presubmits have all been queueing for > 12 hours. /cc @godofredoc

@godofredoc
Copy link
Contributor

The web presubmits have all been queueing for > 12 hours. /cc @godofredoc

Retried the builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"flutter create" for newly created project prints long list of new files

4 participants