universal_html
universal_html copied to clipboard
Needs to be migrated for web support
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.
Here we're having this error when building for flutter 3.19:
Error: The type 'JSObject' can't be used as supertype.
We should really deprecate this library in favor of package:web that is vendored by the Dart team itself.
https://pub.dev/packages/web
We should really deprecate this library in favor of
package:webthat is vendored by the Dart team itself.
In an ideal world, yes, but package:web isn't universal either. Maybe a package:universal_web?
@schultek released a universal_web package.
https://pub.dev/packages/universal_web
Maybe @dint-dev could be invited to help maintain it if they're willing.