switch to the master channel run the following command
1. flutter channel master
Then upgrade your flutter to the latest version from master.
2. flutter upgrade
Then enable web support.
3. flutter config --enable-web
Now when you create a project it'll be web enabled and you can run it in the browser. to verify that run this cmd.
flutter devices
Then
flutter create xyz_project_name