Flutter No devices available
- Dominant language
- JavaScript
- Stars
- 98
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
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
> 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:


Now when I run `flutter devices` I see:
```
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
```
🚀
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.