|
3 | 3 | ### Download then install Flutter
|
4 | 4 | {:.no_toc}
|
5 | 5 |
|
| 6 | +### 下载并安装 Flutter |
| 7 | +{:.no_toc} |
| 8 | + |
6 | 9 | {% assign os = include.os %}
|
7 | 10 | {% assign osl = include.os | downcase %}
|
8 | 11 | {% assign target = include.target %}
|
|
14 | 17 | {% assign terminal='PowerShell' %}
|
15 | 18 | {% assign prompt='C:>' %}
|
16 | 19 | {% assign prompt2=path | append: '>' %}
|
17 |
| - {% assign diroptions='`%USERPROFILE%` (`C:\Users\{username}`) or `%LOCALAPPDATA%` (`C:\Users\{username}\AppData\Local`)' %} |
| 20 | + {% assign diroptions='`%USERPROFILE%` (`C:\Users\{username}`) 或者 `%LOCALAPPDATA%` (`C:\Users\{username}\AppData\Local`)' %} |
18 | 21 | {% assign dirinstall='`%USERPROFILE%\dev\`' %}
|
19 | 22 | {% assign dirdl='%USERPROFILE%\Downloads' %}
|
20 | 23 | {% assign ps-dir-dl='$env:USERPROFILE\Downloads\' %}
|
@@ -68,47 +71,80 @@ download the Flutter SDK bundle from its archive,
|
68 | 71 | move the bundle to where you want it stored,
|
69 | 72 | then extract the SDK.
|
70 | 73 |
|
| 74 | +从归档列表中下载 Flutter SDK 压缩包, |
| 75 | +将压缩包移动到你想要的位置, |
| 76 | +然后解压 SDK, |
| 77 | +以此来安装 Flutter。 |
| 78 | + |
71 | 79 | 1. Download the following installation bundle to get the latest
|
72 | 80 | {{site.sdk.channel}} release of the Flutter SDK.
|
73 | 81 |
|
| 82 | + 下载以下 Flutter SDK 最新 {{site.sdk.channel}} 版本的 |
| 83 | + 压缩包。 |
| 84 | + |
74 | 85 | {% if os=='macOS' %}
|
75 | 86 |
|
76 |
| - | Intel Processor | | Apple Silicon | |
| 87 | + | <t>Intel Processor</t><t>Intel 处理器</t> | | <t>Apple Silicon</t><t>Apple Silicon 处理器</t> | |
77 | 88 | |-----------------|-|---------------|
|
78 |
| - | [(loading...)](#){:.download-latest-link-{{osl}}.btn.btn-primary} | | [(loading...)](#){:.download-latest-link-{{osl}}-arm64.apple-silicon.btn.btn-primary} | |
| 89 | + | [(获取中...)](#){:.download-latest-link-{{osl}}.btn.btn-primary} | | [(获取中...)](#){:.download-latest-link-{{osl}}-arm64.apple-silicon.btn.btn-primary} | |
79 | 90 |
|
80 | 91 | {% else %}
|
81 | 92 |
|
82 |
| - [(loading...)](#){:.download-latest-link-{{osl}}.btn.btn-primary} |
| 93 | + [(获取中...)](#){:.download-latest-link-{{osl}}.btn.btn-primary} |
83 | 94 |
|
84 | 95 | {% endif -%}
|
85 | 96 |
|
86 | 97 | For other release channels, and older builds, check out the [SDK archive][].
|
87 | 98 |
|
| 99 | + 关于其他发布渠道和旧版本, |
| 100 | + 请查阅 [Flutter SDK 归档列表][SDK archive]。 |
| 101 | + |
88 | 102 | The Flutter SDK should download to the {{os}} default download directory:
|
89 | 103 | `{{dirdl}}`.
|
| 104 | + |
| 105 | + Flutter SDK 应该会下载至 {{os}} 默认下载目录: |
| 106 | + `{{dirdl}}`。 |
| 107 | + |
90 | 108 | {% if os=='Windows' %}
|
| 109 | + |
91 | 110 | If you changed the location of the Downloads directory,
|
92 | 111 | replace this path with that path.
|
93 | 112 | To find your Downloads directory location,
|
94 | 113 | check out this [Microsoft Community post][move-dl].
|
| 114 | + |
| 115 | + 如果你自行更改了下载目录的位置, |
| 116 | + 那么请将之后步骤中解压指令 (Expand-Archive) 的 |
| 117 | + 路径 (-Path) 改为你更改后的路径。 |
| 118 | + 如果你需要查找当前计算机下载目录的位置, |
| 119 | + 请查阅 [Microsoft Community post][move-dl] |
| 120 | + |
95 | 121 | {% endif %}
|
96 | 122 |
|
97 | 123 | 1. Create a folder where you can install Flutter.
|
98 | 124 |
|
| 125 | + 创建一个文件夹,用于安装 Flutter。 |
| 126 | + |
99 | 127 | Consider creating a directory at {{diroptions}}.
|
| 128 | + |
| 129 | + 可以考虑在 {{diroptions}} 中创建一个目录。 |
| 130 | + |
100 | 131 | {% if os == "Windows" -%}
|
101 | 132 | {% include docs/install/admonitions/install-paths.md %}
|
102 | 133 | {% endif %}
|
103 | 134 |
|
104 | 135 | 1. Extract the zip file into the directory you want to store the Flutter SDK.
|
105 | 136 |
|
| 137 | + 将 Flutter SDK 压缩文件 (zip) 解压到你想要存储的目录中。 |
| 138 | + 可以使用以下指令进行解压。 |
| 139 | + |
106 | 140 | ```terminal
|
107 | 141 | {{uz}}
|
108 | 142 | ```
|
109 | 143 |
|
110 | 144 | When finished, the Flutter SDK should be in the `{{flutter-path}}` directory.
|
111 | 145 |
|
| 146 | + 完成后,Flutter SDK 应该会位于 `{{flutter-path}}` 目录中。 |
| 147 | + |
112 | 148 | [SDK archive]: {{site.url}}/release/archive
|
113 | 149 |
|
114 | 150 | {% case os %}
|
|
0 commit comments