I\'m building flutter web project and after implenting login page via firebase I ran flutter run -d chrome. But it\'s stuck while attempting to connect to browser, its just atte
Same issue here. When trying the sample project, it works. I think the problem has something to do with dependencies, but have not figured out in detail.
Update: Could be related: https://github.com/flutter/flutter/issues/40876 and https://github.com/flutter/flutter/issues/39998
Update #2: I could reproduce the issue a described in https://github.com/flutter/flutter/issues/39998
1) Create fresh flutter project with web support -> works.
2) add import 'dart:io';
to main.dart -> blank screen
Same issue . It wasn't able to get the instance of browser.
I tried removing unused imports, in my case "import 'dart:ffi';" this was the unused import and ta daa ... it worked !!!.
i just don't know what exactly the problm was.
I have fixed that issue by installing the latest JDK and JRE and added both path to environment variables. it fixes my flutter speed but flutter run and apk building still taking the same.
Try with flutter run -d web-server
, then open URL on Chrome manually.
Same issue: It use to take lot of time to load and 'r', the hot reload command never worked.
For me cleaning builds by "flutter clean" did the magic.
flutter run -d web-server
The answer mentioned by @Giampaolo is a great workaround!