-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
[v9]: Replace custom Platform & PlatformChecker with package platform #2646
Comments
@vaind Hey! Just started this and i'm seeing that https://github.com/dart-lang/core/blob/main/pkgs/platform/lib/src/interface/local_platform.dart Not sure how to circumvent this. Any suggestions? |
You should be checking for "kIsWeb" (or do the same check in Dart code) before using the platform package. |
we can definitely work around this but then we'd still have to use the existing impl for web so not sure if it's worth it to use it? wdyt |
Is there a branch I can have a look at? |
@vaind Pushed the code i had locally. Pretty much replaced our |
I've missed that package:platform doesn't support At the very least, I've taken a stab at cleaning up PlatformChecker (moving actual platform-specific stuff to the |
@vaind Thank you for your insights and the PR, i'll take a look at it. 🙇 |
Description
Replace:
with https://pub.dev/packages/platform
The text was updated successfully, but these errors were encountered: