国内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
相关推荐
wahkim40 分钟前
移动端开发工具集锦
flutter·ios·android studio·swift
傅里叶1 小时前
Flutter / Dart 多包管理工具 —— Melos 使用指南
flutter
西西学代码3 小时前
Flutter---生命周期
flutter
LiWeNHuI4 小时前
Flutter开发:发布插件到Pub
flutter
衿璃6 小时前
Flutter应用架构设计的思考
前端·flutter
QuantumLeap丶8 小时前
《Flutter全栈开发实战指南:从零到高级》- 04 - Widget核心概念与生命周期
flutter·xcode
勤劳打代码10 小时前
触类旁通 —— Flutter 与 React 对比解析
前端·flutter·react native
消失的旧时光-19431 天前
Flutter Event Loop
flutter
程序员老刘1 天前
跨平台开发地图:客户端技术选型指南 | 2025年10月
flutter·react native·客户端
傅里叶1 天前
Flutter 工程环境、插件使用、protobuf配置与字体/持久化管理
flutter