dint-dev / universal_html

Cross-platform 'dart:html'.
https://pub.dev/packages/universal_html
Apache License 2.0
201 stars 60 forks source link

Needs to be migrated for web support #95

Open awvreenen95 opened 6 months ago

awvreenen95 commented 6 months ago

I am attempting to compile a webassembly build for a project I'm working on that makes use of mqtt. The mqtt_client library is dependent on universal_html which does not support webassembly since the dart:html library is not supported.

Please see some more details in an issue I raised on flutter repo and also an issue raised on the mqtt_client repo.

Macacoazul01 commented 6 months ago

Here we're having this error when building for flutter 3.19: Error: The type 'JSObject' can't be used as supertype.

navaronbracke commented 5 months ago

We should really deprecate this library in favor of package:web that is vendored by the Dart team itself.

https://pub.dev/packages/web

lishaduck commented 1 month ago

We should really deprecate this library in favor of package:web that is vendored by the Dart team itself.

In an ideal world, yes, but package:web isn't universal either. Maybe a package:universal_web?