1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/web
Kevin Moore a1998e6186 Remove web/dad_jokes (#328)
Very outdated. Out of sync with the source project
2020-02-14 10:04:02 -08:00
..
2019-12-18 10:54:58 +11:00
2019-12-11 13:01:45 -05:00
2019-12-11 13:01:45 -05:00
2020-02-14 10:04:02 -08:00

Web samples

See the samples in action

Compiled versions of the samples are hosted at flutter.github.io/samples.

Building samples code

Go into one of the sample directories, get packages, and run using the chrome device:

$ flutter channel dev
$ flutter upgrade
$ cd gallery
$ flutter pub get
$ flutter run -d chrome

Web support is available as a technical preview and is only available in the dev or master channels.

You should see a message printing the URL to access: http://localhost:8080

Deploying to GitHub Pages

This project uses peanut to build the samples and commit the output to the gh-pages branch. To deploy, run these commands in the web/ directory:

$ flutter pub global activate peanut
$ flutter pub global run peanut
$ git push origin gh-pages:gh-pages

Note: flutter packages get must be run in each sample before running peanut.