Upgrading universal_html 1 to 2
Breaking1.2.4 → 2.3.0Breaking2New4Changed5Fixed16Other2
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- Imports that pointed at the old prefer_universal or prefer_sdk files no longer exist; import the main html.dart library instead.
- Code that opens or controls browser windows must be updated to the new, simpler API.
Must act 2 items need code or config changes
Dart SDK requirement changed in 2.2.7: >=2.8.0 <3.0.0 → ^3.6.0.
What you must change
Breaking2
Removes the prefer_universal/X.dart and prefer_sdk/X.dart import paths in favor of package:universal_html/html.dart.
package:universal_html/prefer_universal/X.dartpackage:universal_html/prefer_sdk/X.dartpackage:universal_html/html.dartRevamps the API for controlling browser windows, making it easier to work with than the earlier one.