From 4963d7c6a6771604e076b289a19c9d6d732e2745 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Fri, 10 May 2019 10:33:05 -0700 Subject: [PATCH] Update web readme (#79) --- web/readme.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/web/readme.md b/web/readme.md index 11d5a3ff5..7ea09d787 100644 --- a/web/readme.md +++ b/web/readme.md @@ -1,14 +1,22 @@ Samples for [Flutter for web](https://flutter.dev/web). -#### Building Samples code -Set up `webdev` for first time as below: -``` -$ pub global activate webdev -$ pub get -``` +## See the samples in action -Build and run code locally at `http://localhost:8080` -``` +Compiled versions of the samples are hosted at [flutter.github.io/samples](https://flutter.github.io/samples/). + +## Building samples code + +Make sure you have configured the `webdev` tool. + +- [With the Flutter SDK installed](https://github.com/flutter/flutter_web#install-the-flutter_web-build-tools). +- [With the Dart SDK installed](https://dart.dev/tools/webdev#using-webdev-and-build_runner-commands). + +Go into one of the sample directories, get packages, and run. + +```console +$ cd gallery +$ flutter packages pub get # or `pub get` with the Dart SDK $ webdev serve ``` -Checkout [this link](https://dart.dev/tools/webdev#using-webdev-and-build_runner-commands) for more details about building, serving and testing code. + +You should see a message printing the URL to access: `http://localhost:8080`