问题
After opening a simulator, when I run:
flutter create first_app
on my Dev folder directory in my User account, and then I run:
cd first_app
flutter run
I am given an error message saying that there is no lib/main.dart directory, which is true; flutter didn't create a main file/method for me.
This consequently makes it impossible to run the app. I am only starting out with Flutter, so I have yet to learn how to create a main method etc... My visualstudio code has already installed the Flutter Plugins.
来源:https://stackoverflow.com/questions/61372630/flutter-does-not-generate-a-lib-main-dart