• 1. Open Flutter Chinese
  • 2. To obtain the Flutter SDK, I downloaded the installation package according to the website, installed and unpacked it
  • 3. Update environment variables according to the official website
// Enter an example in the user variable: PUB_HOSTED_URL, Value is https://pub.flutter-io.cn PUB_HOSTED_URL = https://pub.flutter-io.cn FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cnCopy the code
  • 4, after running the flutter doctor, there was an error. I deleted the folder containing the package I downloaded in the first step, and then ran the flutter doctor.
git clone -b stable https://github.com/flutter/flutter.git
Copy the code
  • 5. After the Flutter Doctor is installed successfully, run the Flutter Doctor again and some details will be displayed

A flutter certificate is not installed and you need to run it. Then press y to install the flutter doctor — Android licenses 2. Vscode has not installed the flutter certificate and you need to install it

  • Install Android Studio, including emulators, according to the setup steps of Flutter website
  • 7. You can run flutter run inside vscode and the following image will be displayed

  • 8, then you can write code in vscode, such as hot updates, as shown below