mirror of
https://github.com/flutter/samples.git
synced 2026-04-26 17:38:21 +00:00
Updated readme for web (#754)
This commit is contained in:
@@ -10,27 +10,16 @@ https://flutter.github.io/samples/#?platform=web.
|
|||||||
|
|
||||||
## Building samples code
|
## 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:
|
Run the demo using the `chrome` device type:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ cd slide_puzzle
|
$ cd charts
|
||||||
$ flutter packages get
|
$ flutter packages get
|
||||||
$ flutter run -d chrome
|
$ flutter run -d chrome
|
||||||
```
|
```
|
||||||
|
|
||||||
You should see a message printing the URL to access: `http://localhost:8080`
|
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
|
## Deploying to GitHub Pages
|
||||||
|
|
||||||
This project uses [peanut][peanut] to build the samples and commit the output
|
This project uses [peanut][peanut] to build the samples and commit the output
|
||||||
|
|||||||
Reference in New Issue
Block a user