Tutorial by Examples

Use pub build when you’re ready to deploy your web app. When you run pub build, it generates the assets for the current package and all of its dependencies, putting them into new directory named build. To use pub build, just run it in your package’s root directory. For example: $ cd ~/dart/hellowo...
This command starts up a development server, or dev server, for your Dart web app. The dev server is an HTTP server on localhost that serves up your web app’s assets. Start the dev server from the directory that contains your web app’s pubspec.yaml file: $ cd ~/dart/helloworld $ pub serve Servin...

Page 1 of 1