Windows平台下Flutter开发环境搭建

flutterchina:https://flutterchina.club/get-started/
flutter-io:https://flutter-io.cn

环境变量

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

export PATH=$PATH:$FLUTTER_HOME/bin

Android Studio安装flutter插件

Flutter基本命令

双击运行:E:\Flutter\flutter_windows_v1.0.0-stable\flutter\flutter_console.bat

E:\Flutter\flutter_windows_v1.0.0-stable\flutter>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.15063], locale zh-CN)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[√] Android Studio (version 3.2)
[!] IntelliJ IDEA Ultimate E

你可能感兴趣的:(Flutter快速入门实战,flutter)