flutter 移动端

最后更新于:2022-04-02 02:16:05

[TOC] > [官网](https://flutter.dev/docs/get-started/install) >[中文镜像](https://flutter.cn/docs) ## 安装 ### 设置代理 ``` //win set FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter set PUB_HOSTED_URL=https://pub.flutter-io.cn //类linux export FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter export PUB_HOSTED_URL=https://pub.flutter-io.cn ``` ### win 安装到c盘的非 Program Files 命令,为了不提示提权 如 ``` cd C:\src\flutter git clone https://github.com/flutter/flutter.git ``` 把 `flutter\bin ` 放入环境变量 ``` flutter doctor ``` ## 创建第一个应用 ``` flutter create helloword cd helloword flutter run ```
';