flutter create my_app

cd my_app

To serve your app from localhost in Chrome,
enter the following from the top of the package:

flutter run

d chrome

Note:
  If there aren’t any other connected devices,
  the -d chrome is optional.

The flutter run command launches the application using the
development compiler in a Chrome browser.

Warning:
  Hot reload is not supported in a web browser
  Currently, Flutter supports hot restart,
  but not hot reload in a web browser.

Build

Run the following command to generate a release build:

flutter build web

dart2js
(instead of the

development compiler)
to produce a single JavaScript file