toly-flutter / flutter_journey

25 stars 2 forks source link

+ 0000 MacOS、Windows 如何配置Flutter环境 以及 创建Flutter初始项目 #3

Open toly-flutter opened 5 years ago

toly-flutter commented 5 years ago

我是谁,我在哪里,我要到哪去?

toly1994328 commented 5 years ago

一、Mac配置Flutter环境

1.下载 Flutter SDK: https://flutter.dev/docs/development/tools/sdk/releases


2.解压后添加环境变量: vim ~/.bash_profile

解压
export PATH= flutterSDK磁盘路径/bin:$PATH
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

3. 通过命令行查看环境是否ok : flutter --version

屏幕快照 2019-10-29 下午7 20 02
toly1994328 commented 5 years ago

二、Windows配置Flutter环境

1.下载 Flutter SDK: https://flutter.dev/docs/development/tools/sdk/releases 并解压

image


2.添加环境变量

image

image


3. 通过命令行查看环境是否ok --> flutter --version

toly1994328 commented 5 years ago

三、AndroidStudio创建Flutter初始项目

image

image

image

image