Upgrade JS interop by removing dart:html dependency
Closed this issue · 4 comments
maxlapides commented
"The Dart team recently overhauled the collection of features and APIs that allow developers access to JavaScript and browser bindings in their Dart code. This next generation of web interop not only improves user experience, but also enables Wasm support, aligning Dart with the future of the Web."
maxlapides commented
Looks like there are only two files using dart:html
:
edsonjab commented
Hi @maxlapides sorry to answer late, what version of flutter are you using?
When I try run flutter pub get
on the project show me this message:
I'm using Flutter 3.16.9
jardianoalmeida commented
boa tarde, remova esse importe e deve resolver o seu problema:
- import 'package:segment_analytics/analytics_web.dart';
maxlapides commented
@edsonjab So sorry, I just saw your note! I tested this on Flutter 3.22.