Skip to content

Commit 125ba78

Browse files
authored
[web] Change --web-renderer default from auto to canvaskit (#10722)
Changes the documentation of the default renderer on web. The default renderer is changing from `auto` to `canvaskit`. The PR making the code changes: flutter/flutter#149773 The issue: flutter/flutter#149826 ## Presubmit checklist - [x] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
1 parent eaba9da commit 125ba78

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ your needs. The two renderers are:
2121
The `--web-renderer` command line option takes one of three values:
2222
`canvaskit`, `html`, or `auto`.
2323

24-
* `canvaskit` (soon to be default) - always use the CanvasKit renderer
25-
* `auto` (default) - automatically chooses which renderer to use. This option
24+
* `canvaskit` (default) - always use the CanvasKit renderer
25+
* `html` - always use the HTML renderer
26+
* `auto` - automatically chooses which renderer to use. This option
2627
chooses the HTML renderer when the app is running in a mobile browser, and
2728
CanvasKit renderer when the app is running in a desktop browser.
28-
* `html` - always use the HTML renderer
2929

3030
This flag can be used with the `run` or `build` subcommands. For example:
3131

@@ -98,22 +98,22 @@ mobile browsers and optimizing for performance on desktop browsers.
9898

9999
## Examples
100100

101-
Run in Chrome using the default renderer option (`auto`):
101+
Run in Chrome using the default renderer option (`canvaskit`):
102102

103103
```console
104104
flutter run -d chrome
105105
```
106106

107-
Build your app in release mode, using the default (`auto`) option:
107+
Build your app in release mode, using the default (`canvaskit`) option:
108108

109109
```console
110110
flutter build web --release
111111
```
112112

113-
Build your app in release mode, using just the CanvasKit renderer:
113+
Build your app in release mode, using the `auto` renderer option:
114114

115115
```console
116-
flutter build web --web-renderer canvaskit --release
116+
flutter build web --web-renderer auto --release
117117
```
118118

119119
Run your app in profile mode using the HTML renderer:

0 commit comments

Comments
 (0)