feat:增加Flutter安装文档
This commit is contained in:
@@ -81,6 +81,7 @@ export const routers = [
|
||||
{
|
||||
text: '📱 Flutter',
|
||||
items: [
|
||||
{ text: 'Flutter简介与安装', link: '/Flutter/FlutterInstall' },
|
||||
{ text: 'Dart基础教程', link: '/Flutter/DartGuide' },
|
||||
{ text: 'Flutter基础教程', link: '/Flutter/FlutterGuide' },
|
||||
{ text: '实战技巧', link: '/Flutter/Practice' }
|
||||
|
||||
29
docs/Flutter/FlutterInstall.md
Normal file
29
docs/Flutter/FlutterInstall.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
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`
|
||||
Reference in New Issue
Block a user