国内flutter环境部署(记录篇)

设置系统环境变量

bash 复制代码
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

使用以下命令下载flutter镜像

bash 复制代码
git clone -b stable https://mirror.ghproxy.com/https://github.com/<github仓库地址>

#例如flutter仓库
git clone -b stable https://mirror.ghproxy.com/https://github.com/flutter/flutter.git

添加PATH到环境

其中/path/to/your为你的flutter安装根目录

bash 复制代码
export PATH="$PATH:/path/to/your/flutter/bin"

运行flutter doctor检测是否安装完成

bash 复制代码
flutter doctor
相关推荐
BG3 小时前
Flutter 简仿Excel表格组件介绍
flutter
zhangmeng7 小时前
FlutterBoost在iOS26真机运行崩溃问题
flutter·app·swift
恋猫de小郭7 小时前
对于普通程序员来说 AI 是什么?AI 究竟用的是什么?
前端·flutter·ai编程
卡尔特斯8 小时前
Flutter A GlobalKey was used multipletimes inside one widget'schild list.The ...
flutter
w_y_fan11 小时前
Flutter 滚动组件总结
前端·flutter
醉过才知酒浓12 小时前
Flutter Getx 的页面传参
flutter
火柴就是我1 天前
flutter 之真手势冲突处理
android·flutter
Speed1231 天前
`mockito` 的核心“打桩”规则
flutter·dart
法的空间1 天前
Flutter JsonToDart 支持 JsonSchema
android·flutter·ios
恋猫de小郭1 天前
Android 将强制应用使用主题图标,你怎么看?
android·前端·flutter