Add Wasm support (#2103)
Since dart:html is not supported when compiling to Wasm, the correct alternative now is to use dart.library.js_interop to differentiate between native and web Source: https://dart.dev/interop/js-interop/package-webrefactor/extensions-package-structure v10.1.10
parent
ac573df0fb
commit
9c79db83c8
3 changed files with 5 additions and 3 deletions
@ -1 +1 @@ |
||||
export 'dart:ui' if (dart.library.html) 'dart:ui_web'; |
||||
export 'dart:ui' if (dart.library.js_interop) 'dart:ui_web'; |
||||
|
Loading…
Reference in new issue