[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[web] Change --web-renderer default from auto to canvaskit #10722

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/content/platform-integration/web/renderers.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ your needs. The two renderers are:
The `--web-renderer` command line option takes one of three values:
`canvaskit`, `html`, or `auto`.

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

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

Expand Down Expand Up @@ -97,22 +97,22 @@ mobile browsers and optimizing for performance on desktop browsers.

## Examples

Run in Chrome using the default renderer option (`auto`):
Run in Chrome using the default renderer option (`canvaskit`):

```console
flutter run -d chrome
```

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

```console
flutter build web --release
```

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

```console
flutter build web --web-renderer canvaskit --release
flutter build web --web-renderer auto --release
```

Run your app in profile mode using the HTML renderer:
Expand Down
Loading