-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Request]: (connectivity_plus): migrate to pkg:web from dart:html #2600
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
Comments
Thanks for raising this, but we already track it since November and had a discussions about such migration with some people in the Dart team. The migration for this and other packages will happen when |
@vbuberen are there corresponding issues for those on the Dart side? |
Does anyone know if there is a migration guide somewhere? I'm currently checking if moving to the web package would be possible, but the implementation on listening to events has changed, and I cannot figure it out. The wip branch: main...miquelbeltran/issue2600 This code here does not compile: window.ononline.listen((event) {
And I cannot find any examples out there on how to listen to events defined as |
This example from there is a short migration guide but doesn't explain how the listening of events work now: https://dart.dev/interop/js-interop/package-web |
@miquelbeltran you can add an event listener to the See https://pub.dev/documentation/web/latest/web/EventStreamProviders/onlineEvent-constant.html
|
That's even better, thank you! |
Plugin
connectivity_plus
Use case
Flutter web apps are required to migrate from
dart:html
topackage:web
to use WASM.Proposal
This issue tracks the upgrade process for
connectivity_plus
.See https://docs.flutter.dev/platform-integration/web/wasm and https://pub.dev/packages/web for more information
The text was updated successfully, but these errors were encountered: