Files
blog-press/docs/Web/Flutter/FlutterInstall.md
2026-05-20 11:26:38 +08:00

29 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Flutter简介与安装
date: 2026-05-02
---
# 一、简介
  Flutter 是 Google 推出的跨平台 UI 开发框架,使用 Dart 语言,通过自带的渲染引擎直接绘制界面,可一套代码同时构建 iOS、Android、Web 及 Windows/macOS/Linux 桌面应用,具备原生级性能、热重载和高 UI 一致性,适合追求多端统一与体验效率的项目开发。
# 二、安装
## 2.1 下载SDK
  打开[官网](https://docs.flutter.dev/install/archive)选择SDK版本下载然后解压到相应目录。
## 2.2 环境变量配置
1. 在系统变量->path中添加'/path/to/flutter/bin'
2. 在系统变量中添加: 'PUB_HOSTED_URL'->'https://pub.flutter-io.cn'
3. 在系统变量中添加: 'FLUTTER_STORAGE_BASE_URL'->'https://storage.flutter-io.cn'
4. 在系统变量中添加: 'FLUTTER_GIT_URL'->'https://gitee.com/mirrors/Flutter.git'
## 2.3 校验安装
  输入`flutter --version``flutter doctor`查看是否有错误输出。
::: tip
Windows开发需要安装Visual Studio的'C++的桌面开发'。
Android开发需要安装Android SDK。
Web开发需要安装Chrome浏览器。
:::
## 三、Android Studio
1. 安装Flutter和Dart插件
2. 在Settings->Languages->Dart中选择Dart路径`/path/to/flutter/bin/cache/dart-sdk`