You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/web
Ben Hagen 231a19a092
Use video_player_web (#170)
5 years ago
..
_tool Analysis options uplift to 1.8 (#169) 5 years ago
charts Analysis options uplift to 1.8 (#169) 5 years ago
dad_jokes Analysis options uplift to 1.8 (#169) 5 years ago
filipino_cuisine Analysis options uplift to 1.8 (#169) 5 years ago
gallery Use video_player_web (#170) 5 years ago
github_dataviz Analysis options uplift to 1.8 (#169) 5 years ago
particle_background Analysis options uplift to 1.8 (#169) 5 years ago
slide_puzzle Analysis options uplift to 1.8 (#169) 5 years ago
spinning_square Analysis options uplift to 1.8 (#169) 5 years ago
timeflow Analysis options uplift to 1.8 (#169) 5 years ago
vision_challenge Analysis options uplift to 1.8 (#169) 5 years ago
.gitignore Update web/ samples to work with Flutter SDK (#134) 5 years ago
peanut.yaml re-enable web samples, fix various issues (#156) 5 years ago
readme.md add deployment documentation to web/ directory (#164) 5 years ago

readme.md

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.