Skip to content
Sanjay Soni edited this page Apr 23, 2020 · 2 revisions

Music UI Flutter Web.

Web Set up

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

Create and run

To create a new app for use with web support (in addition to mobile support), run the following commands, substituting myapp 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

Add web support to an existing app

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

Build

Run the following command to generate a release build:

 flutter build web
Clone this wiki locally