Web Configuration

Estimated reading: 1 minute 378 views

Setup

Run the commands to use the latest version of the SDK from the beta channel and enable web support (hit command one by one).

$ flutter channel beta
$ flutter upgrade
$ flutter config --enable-web

Warning:

Running flutter channel beta replaces your current version of Flutter with the beta version and after this, running the flutter upgrade upgrades your install to the latest beta. Returning to the stable channel (or any other) requires calling flutter channel explicitly

Adding Web support in existing app

To Web support to the existing app project, run the command in a terminal from the root directory.

$ flutter create .

Important:

After forming this command restarts the Android studio.

Run Project

Select Chrome or any preferred browser and run the project.

Leave a Comment