Open nelsonic opened 4 years ago
While attempting to build a Flutter Web Application #9 on my Mac #13 I was unable to get the Google Chrome browser to be recognised as a device in Flutter ...
After a bit of googling I found: [Web] 'flutter devices' does not list chrome https://github.com/flutter/flutter/issues/40232 where @chenfei-io (Son Goku ;-) recommends the following steps: https://github.com/flutter/flutter/issues/40232#issuecomment-530324689
flutter channel master flutter upgrade flutter config --enable-web cd <into project directory> flutter create . flutter run -d chrome https://flutter.dev/docs/get-started/web
flutter channel master flutter upgrade flutter config --enable-web cd <into project directory> flutter create . flutter run -d chrome
https://flutter.dev/docs/get-started/web
Another 200Mb ... 🙄 (this framework is really not for people who are bandwidth constrained!!)
"learn-flutter" is not a valid Dart package name. See https://dart.dev/tools/pub/pubspec#name for more information.
https://dart.dev/tools/pub/pubspec#name Fix: replace hyphens for underscores.
Now when I execute the command flutter run -d chrome I see:
flutter run -d chrome
Now when I run flutter devices I see:
flutter devices
3 connected devices: Pixel 3 • 89HX09YMG • android-arm64 • Android 10 (API 29) Chrome • chrome • web-javascript • Google Chrome 79.0.3945.117 Web Server • web-server • web-javascript • Flutter Tools
🚀
While attempting to build a Flutter Web Application #9 on my Mac #13 I was unable to get the Google Chrome browser to be recognised as a device in Flutter ...
After a bit of googling I found: [Web] 'flutter devices' does not list chrome https://github.com/flutter/flutter/issues/40232 where @chenfei-io (Son Goku ;-) recommends the following steps: https://github.com/flutter/flutter/issues/40232#issuecomment-530324689
Another 200Mb ... 🙄 (this framework is really not for people who are bandwidth constrained!!)![image](https://user-images.githubusercontent.com/194400/72206080-ad3b6d80-3481-11ea-8fe8-4c9dedcbece0.png)
https://dart.dev/tools/pub/pubspec#name Fix: replace hyphens for underscores.
Now when I execute the command![image](https://user-images.githubusercontent.com/194400/72206169-96e1e180-3482-11ea-8434-cd839d635666.png)
flutter run -d chrome
I see:Now when I run
flutter devices
I see:🚀