Flutter from configuring the development environment to developing the first application
Flutter from configuring development environment to developing the first application
Starting from java development, to develop java, first download jdk sdk, then prepare environment variables , and finally prepare development tools to enter development.
In Flutter, first download the Flutter sdk and Dart sdk, then prepare the environment variables, and finally prepare the development tools to enter the development.
1 Configure the development environment
1.1.1 Download Flutter SDK
[Official website download ( https://flutter.dev/docs/development/tools/sdk/releases?tab=windows )
Different computer systems download different SDKs
Downloaded Flutter Sdk directory
1.1.1 Dark sdk
Dart sdk is included under Flutter Sdk
1.2 Windows environment variable configuration
- Configure Flutter Sdk environment variables
Reconfigure two system variables
FLUTTER_STORAGE_BASE_URL
https://storage.flutter-io.cn
- 1
- 2
PUB_HOSTED_URL
https://pub.flutter-io.cn
- 1
- 2
1.3 MacOs environment variable configuration
Open Command Line Tools [Terminal]
cd $HOME
open -e .bash_profile
- 1
- 2
file added
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
- 1
- 2
Add the flutter sdk path to the path, that is, add the path of the Flutter SDK installation
export PATH=${PATH}:/Users/.../Flutter/flutter/bin:$PATH
- 1
1.4 Android Studio Flutter plugin configuration
Install flutter plugin
Install Dart plugin
Restart Android Studio