Since flutter 1.9 : how to run flutter app in a browser ? Flutter run -d chrome not working

For these people whose chrome still cannot be detected even after flutter config --enable-web.You should check if your flutter in appropriate branch ,to list all branches, use:

flutter channel

output may looks like this:

Flutter channels:  
   beta  
   dev  
   master  
*  stable 

item with asterisk prefix indicates which branch you are in.To switch to master, try:

flutter channel master

after that, your flutter doctor can list chromedevice.


Have you enabled web support by flutter config --enable-web ?

enter image description here

Got Reference from this link


https://flutter.dev/docs/get-started/web

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

$ flutter devices  //downloads sky_engine and sdk tools then shows a list of devices including chrome

$ flutter create test_app
$ flutter run -d chrome  //local host will run chrome