Method 1 : Create a terminal command line, open the terminal, open the cd to create the storage location of the project file, enterflutter create 项目名
flutter create 项目名
Note"xxx项目名" is not a valid Dart package name.
⚠️: Such an error message may appear during the creation process .
Here we need to pay attention 命名规范
:
Package names should be all lowercase, with underscores to separate words, 'just_like_this'. Use only basic Latin letters and Arabic digits: [a-z0-9_].
That is:项目名称只能出现小写字母、下划线_以及0-9的数字
Method 2 : Use vs code
development tools to create
Note ❗️: To use this method, two plugins must be installed: Flutter
and dart
You can also install Awesome Flutter Snippets
this plugin, the smart prompt code
Press in vs code commode+shift+p
to bring up the following picture, after selecting it, Flutter:New Project
directly enter the project name in the input box, press Enter, and follow the prompts
run
Method 3 : Android Studio
Create a project using
Install the plug-in first: Flutter
and dart
, click in the upper left corner Android Studio
, select Settings Settings
, findPlugins
create project