flutter环境搭建(Windows、vscode)
发布于 1 年前 作者 fuxingZhang 2039 次浏览 来自 分享

my github flutter hello world

https://github.com/fuxingZhang/flutter
image.png

flutter summary

image.png

环境搭建

下载安装包

https://storage.googleapis.com/flutter_infra/releases/beta/windows/flutter_windows_v0.5.1-beta.zip

解压

C:\flutter

image.png

双击 flutter_console.bat

image.png

环境变量

1.用户环境变量新增2条

PUB_HOSTED_URL https://pub.flutter-io.cn

FLUTTER_STORAGE_BASE_URL https://storage.flutter-io.cn

image.png

2.系统环境变量path内新增1条

path 内新增

C:\flutter\bin

image.png

Run flutter doctor

flutter doctor
image.png

Install Android Studio

http://www.android-studio.org/
image.png

vscode 插件 安装

image.png

vscode 新建一个项目

image.png

按F5启动项目

image.png

终于看到了效果

image.png
点击一下 +1

image.png

相关资源

flutter website:

  1. english : https://flutter.io/
  2. chinese: https://flutterchina.club/
  3. github: https://github.com/flutter/flutter

dart website:

  1. english: https://www.dartlang.org/
  2. chinese: http://www.dartlang.cc/
  3. github: https://github.com/dart-lang/sdk

use flutter in China

https://github.com/flutter/flutter/wiki/Using-Flutter-in-China

回到顶部