Flutter does not generate a lib/main.dart

旧时模样 提交于 2021-01-29 08:34:01

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!