Run the following commands to use the latest version of the Flutter SDK from the beta channel and enable web support:
flutter channel betaflutter upgradeflutter config --enable-webTo 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 myappTo serve your app from localhost in Chrome, enter the following from the top of the package:
flutter run -d chromeTo 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 chromeRun the following command to generate a release build:
flutter build web