Skip to content

Commit aa8584d

Browse files
committed
Update: src/content/platform-integration/web/renderers.md
1 parent 76b907e commit aa8584d

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/content/platform-integration/web/renderers.md

-26
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,8 @@ passing a configuration object to the loader, as follows:
8282
a new object to the `_flutter.loader.load` method that is
8383
provided by the earlier injected code.
8484

85-
将你准备好的 config 对象作为新对象的 `config` 属性,
86-
传递给先前注入的代码所提供的 `_flutter.loader.load` 方法。
87-
8885
Example:
8986

90-
示例:
91-
9287
```html highlightLines=9-14
9388
<body>
9489
<script>
@@ -112,19 +107,10 @@ The web renderer can't be changed after calling the `load` method. Therefore,
112107
any decisions about which renderer to use, must be made prior to calling
113108
`_flutter.loader.load`.
114109

115-
Web 渲染器在调用 `load` 方法后就无法改变了。
116-
因此,必须在调用 `_flutter.loader.load` 之前决定使用哪种渲染器。
117-
118110
:::version-note
119-
120111
The method of specifying the web renderer was changed in Flutter 3.22.
121112
To learn how to configure the renderer in earlier Flutter versions,
122113
check out [Legacy web app initialization][web-init-legacy].
123-
124-
在 Flutter 3.22 中更改了指定 Web 渲染器的方法。
125-
要了解如何在 Flutter 早期版本中配置渲染器,
126-
请查阅 [早期的 Web 应用初始化][web-init-legacy]
127-
128114
:::
129115

130116
[custom-bootstrap]: /platform-integration/web/initialization#custom-bootstrap-js
@@ -133,8 +119,6 @@ check out [Legacy web app initialization][web-init-legacy].
133119

134120
## Choosing which build mode to use
135121

136-
## 选择合适的渲染器
137-
138122
Compiling Dart to WebAssembly comes with a few new requirements that must be met
139123
by all app code, and all plugins and packages used by the app:
140124

@@ -160,36 +144,26 @@ General recommendations can be summarized as follows:
160144

161145
## Examples
162146

163-
## 示例
164-
165147
Run in Chrome using the default build mode:
166148

167-
在 Chrome 浏览器上使用默认构建模式运行:
168-
169149
```console
170150
flutter run -d chrome
171151
```
172152

173153
Build your app for release using the default build mode:
174154

175-
使用默认构建模式来构建应用,以便进行发布:
176-
177155
```console
178156
flutter build web
179157
```
180158

181159
Build your app for release using the WebAssembly mode:
182160

183-
使用 WebAssembly 模式构建应用,以便进行发布:
184-
185161
```console
186162
flutter build web --wasm
187163
```
188164

189165
Run your app for profiling using the default build mode:
190166

191-
使用默认构建模式运行应用,以便进行性能分析:
192-
193167
```console
194168
flutter run -d chrome --profile
195169
```

0 commit comments

Comments
 (0)