-
Notifications
You must be signed in to change notification settings - Fork 171
remove dart:io import and use UniversalPlatform #551
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
remove dart:io import and use UniversalPlatform #551
Conversation
|
I get that For end users though this would add an additional version constraint on |
|
@stefanschaller Thanks! Can you please use https://pub.dev/packages/platform instead. |
|
@kuhnroyal I changed the dependency to platform, but I'm unsure about the goal since https://pub.dev/packages/platform is still importing @albertmoravec What would you recommend to do? We could also copy past some code to avoid dependencies, but I'm not a huge fan. |
25cd21f to
68f981a
Compare
|
Yea, sorry, I thought the Since the interface package already relies on Flutter, we can use |
|
I could be wrong, but it seems that the 'Unsupported operation' error still persists even with the latest commits. Can anyone confirm? |
|
@kuhnroyal We are still using the io import, which is not working for web! |
|
No, this is compiled out for web as the |
|
Just the occurrence of the As you can see here, the example uses |
Fix maplibre#550 --------- Co-authored-by: Peter Leibiger <[email protected]>
Fix maplibre#550 --------- Co-authored-by: Peter Leibiger <[email protected]>
Fix #550
Please add the following to the pubspec.yaml to test it in other projects: