Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter No devices available #14

Open
nelsonic opened this issue Jan 11, 2020 · 0 comments
Open

Flutter No devices available #14

nelsonic opened this issue Jan 11, 2020 · 0 comments

Comments

@nelsonic
Copy link
Member

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 flutter/flutter#40232
where @chenfei-io (Son Goku ;-) recommends the following steps: flutter/flutter#40232 (comment)

 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!!)
image

"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.

image

Now when I execute the command flutter run -d chrome I see:
image

Screenshot 2020-01-11 at 14 57 04

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

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant