• Download SDK, Flutter SDK

Flutter. Dev/docs/develo… Select the latest stable version of the MAC

  • The downloaded SDK will extract a folder of flutter. Create a folder called “Flutter” and put the flutter into the “Flutter” folder. Then drag the “flutter” folder directly into the Users

  • Configuring environment Variables

vim ~/.bash_profile

  • To the ~/.bash_profile file
# configuration flutter here is configured in the application the export FLUTTER_HOME = / Users/lymflutter/flutter export PATH = $PATH: $FLUTTER_HOME/bin export PATH=$PATH:$FLUTTER_HOME/bin/cache/dart-sdk/bin # Export PUB_HOSTED_URL=https://pub.flutter-io.cn export  FLUTTER_STORAGE_BASE_URL= https://storage.flutter-io.cnCopy the code
  • Make the ~/. Bash_profile file take effect immediately

source ~/.bash_profile

  • Then enter it at the terminal

Note that the flutter –version will be installed first when the flutter is executed for the first time. Wait patiently for dart –version

  • Configuration is complete

  • Set up the VS Code development environment

Only two plug-ins need to be installed

  • Detection of flutter

flutter doctor

  • Create flutter application

flutter create helloflutter