-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(package_info_plus)!: Migrate to js_interop for conditional export #2622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ import 'package:flutter_web_plugins/flutter_web_plugins.dart'; | |
| import 'package:http/http.dart'; | ||
| import 'package:package_info_plus_platform_interface/package_info_data.dart'; | ||
| import 'package:package_info_plus_platform_interface/package_info_platform_interface.dart'; | ||
| import 'package:web/helpers.dart' as web; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you need to leave helpers.dart, because we want to support web 0.3
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh, I will revert it back if the PR open again
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reviewer made an alternative PR already |
||
| import 'package:web/web.dart' as web; | ||
|
|
||
| /// The web implementation of [PackageInfoPlatform]. | ||
| /// | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to this document you need to use js_interop for conditional import to support WASM,
am I wrong?
https://dart.dev/interop/js-interop/package-web