Flutter is Google’s mobile UI framework for quickly building high-quality native user interfaces on iOS and Android.

1, first use the image, configure the environment variable:

Right click on my computer and select Properties -- > Advanced -- > Environment Variables to configure the following variables:  export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cnCopy the code

2. System Requirements: To install and run Flutter, your development environment must meet the following minimum requirements:

Operating system: Windows 7 or later (64-bit) Disk space: 400 MB (not including Android Studio disk space). Tools: Flutter relies on the following command-line tools. Git for Windows (Git command line tool) If you have Git for Windows installed, make sure you run the Git command at the command prompt or PowerShell. Unable to find git in your PATH error: Failed to find git in your PATH. Add C: Program Files\ git \bin to the PATH environment variable manually.Copy the code

3. Get the Flutter SDK

3.1 Go to the website of Flutter to download the latest available installation package. Find a stable version to download. https://flutter.dev/docs/development/tools/sdk/releases#windows 3.2 will install package zip into you want to install the path of the Flutter SDK (such as: C: \ SRC \ Flutter; 3.3 Find flutter_console.bat in the flutter file of the flutter installation directory. Double-click to run and start the flutter command line. You can then run the Flutter command on the Flutter command line. 3.4 However, you cannot run commands on the TERMINAL. You need to modify the environment variable of path.Copy the code

4. Modify environment variables

To run the flutter command on your terminal, you need to add the following environment variables to the system PATH. Under "User variables", check for an entry named "PATH". If the entry does not exist, create a new user variable Path and take the full Path of flutter\bin as its value. Check for items named "PUB_HOSTED_URL" and "FLUTTER_STORAGE_BASE_URL" under "User Variables". If not, add them as follows:  PUB_HOSTED_URL=https://pub.flutter-io.cn FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cnCopy the code

5. Restart Windows to apply the change

This step must be performed.Copy the code

6, Run flutter Doctor

Open a new command prompt or PowerShell window and run the following command to see if any dependencies need to be installed to complete the installation.Copy the code

7. Select the editor tool

Android Studio is recommended for better compatibility with Google tools.Copy the code

The basic process of FLUTTER is also based on the Chinese document of FLUTTER. It is recorded here for my own notes. Welcome your corrections.