universal_html icon indicating copy to clipboard operation
universal_html copied to clipboard

Needs to be migrated for web support

Open awvreenen95 opened this issue 1 year ago • 3 comments

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.

awvreenen95 avatar Feb 16 '24 07:02 awvreenen95

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

Macacoazul01 avatar Feb 22 '24 01:02 Macacoazul01

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

https://pub.dev/packages/web

navaronbracke avatar Mar 21 '24 09:03 navaronbracke

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?

lishaduck avatar Aug 09 '24 16:08 lishaduck

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

rayliverified avatar Jan 12 '25 22:01 rayliverified