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
insert image description here

Downloaded Flutter Sdk directory
insert image description here

1.1.1 Dark sdk

Dart sdk is included under Flutter Sdk
insert image description here

1.2 Windows environment variable configuration
  • Configure Flutter Sdk environment variables
    insert image description here

Reconfigure two system variables

FLUTTER_STORAGE_BASE_URL
https://storage.flutter-io.cn
  • 1
  • 2

insert image description here

PUB_HOSTED_URL
https://pub.flutter-io.cn
  • 1
  • 2

insert image description here

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

insert image description here

Install flutter plugin
insert image description here

Install Dart plugin
insert image description here

Restart Android Studio

Tags: Flutter from configuring the development environment to developing the first application

A full set of tutorials for Flutter project development flutter environment configuration

Related: Flutter from configuring the development environment to developing the first application