Run the following commands to use the latest version of the Flutter SDK from the beta channel and enable web support:
flutter channel beta
flutter upgrade
flutter config --enable-web
To create a new app for use with web support (in addition to mobile support), run the following commands, substituting myap with the name of your project:
flutter create myapp
cd myapp
To serve your app from localhost in Chrome, enter the following from the top of the package:
flutter run -d chrome
To add web support to an existing project, run the following command in a terminal from the root project directory:
flutter create .
To serve your app from localhost in Chrome, enter the following from the top of the package:
flutter run -d chrome
Run the following command to generate a release build:
flutter build web