OpenWeatherPlus-Flutter icon indicating copy to clipboard operation
OpenWeatherPlus-Flutter copied to clipboard

Is it accessible to run on the web?

Open tsuiwade opened this issue 4 years ago • 2 comments

Nice contribution! Thank you!

I'm new to flutter, and want to know how to run the project on the web?

My environment :

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 2.3.0-1.0.pre.168, on Microsoft Windows [Version 10.0.19041.928], locale zh-CN)
[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
[!] Android Studio (not installed)
[√] VS Code, 64-bit edition (version 1.55.0)
[√] Connected device (2 available)

! Doctor found issues in 2 categories.

When I input flutter run :

No supported devices connected.
The following devices were found, but are not supported by this project:
Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.93
Edge (web)   • edge   • web-javascript • Microsoft Edge 89.0.774.68
If you would like your app to run on web, consider running `flutter create .` to generate projects for these platforms. 

When I input flutter creat . :

"OpenWeatherPlus-Flutter" is not a valid Dart package name.
See https://dart.dev/tools/pub/pubspec#name for more information.

tsuiwade avatar Apr 29 '21 09:04 tsuiwade

I can run it on web, but only shows N/A....

tsuiwade avatar May 06 '21 13:05 tsuiwade

@tsuiwade Hi,thanks for your information. This project was created before flutter web released to the stable channel. So it not compatible with web. PR is welcome to make it running in web enviroment.

danieldai avatar May 06 '21 14:05 danieldai