1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Updated readme for web (#754)

This commit is contained in:
Tushar Ojha
2021-03-08 14:52:54 +05:30
committed by GitHub
parent 59b50ec010
commit 51ebc7e0bf

View File

@@ -10,27 +10,16 @@ https://flutter.github.io/samples/#?platform=web.
## Building samples code
Update Flutter and enable web support
```console
$ flutter channel dev
$ flutter upgrade
$ flutter config --enable-web
```
Run the demo using the `chrome` device type:
```console
$ cd slide_puzzle
$ cd charts
$ flutter packages get
$ flutter run -d chrome
```
You should see a message printing the URL to access: `http://localhost:8080`
Web support is available as a technical preview and is only available in the
`dev` or `master` channels.
## Deploying to GitHub Pages
This project uses [peanut][peanut] to build the samples and commit the output