• . Pull code from Github:

      git clone -b beta https://github.com/flutter/flutter.git
    Copy the code
  • Configure environment variables:

    Create a. Bash_profile file in the current user directory, or open it if it already exists. Copy the following code into.bash_profile, Export PATH_TO_FLUTTER_GIT_DIRECTORY=/Users/ Your user name/Flutterexport PATH=${PATH}:${PATH_TO_FLUTTER_GIT_DIRECTORY}/bin When finished, click Save, execute source.bash_profile on the command line, and then enter FLUTTER to test. If Commond not found is not displayed, the configuration is successful.Copy the code
  • Execute the flutter doctor command to detect dependencies that still need to be installed.

    [✓]Flutter(Channel beta,v0.1.5,on Mac OS X 10.13.3 17D102,locale zh-hans -CN) [✓]Android toolchain - develop for Android Devices (Android SDK 27.0.3) [!] Those who qualify can go onto those who qualify. IOS Toolchain - Develop for iOS Devices (Xcode 9.2) // iOS Environment Can go onto libimobiledevice and ideviceinstaller are not installed  install, run: Brew install --HEAD libiMobileDevice brew install ideviceInstaller onto ios-deploy not installed. To install: Brew install ios-deploy [✓]Android Studio(version 3.0) // Those who qualify can enter onto university. IntelliJ IDEA Ultimate Edition(Version 2017.3.1) Can apply onto those who qualify. Those who qualify Dart plugin not installed; This adds Flutter specific functionality. This adds Dart specific functionality. [✓]VS Code(version 1.21.0) // Editor plugins detect [!] Connected Devices! No devices available // Currently unavailable devicesCopy the code
  • After all dependencies are installed, the following message will be displayed

    Doctor summary (to see all details, run flutter doctor -v): ✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, ✓ ✓ Android toolchain-develop for Android Devices (Android SDK 27.0.3) [✓] iOS toolchain-develop ✓ For iOS Devices (Xcode 9.2) [✓] Android Studio (Version 3.0) [✓] IntelliJ IDEA Ultimate Edition (version 2017.3.1) [✓] VS Code (Version 1.21.0) [✓] Connected devices (1 available)Copy the code
  • At this point your environment configuration is complete. (Since I did ReactNtive development before, I have installed some other environments, such as AndroidStudio, Xcode, etc.)