Skip to content

[web] Check web before Platform.isX #391

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

Closed
wants to merge 1 commit into from
Closed

[web] Check web before Platform.isX #391

wants to merge 1 commit into from

Conversation

nstrelow
Copy link
Contributor

@nstrelow nstrelow commented Jun 11, 2020

Fixes Unsupported operation: Platform._operatingSystem as described in #385 .

dart:io 's Platform.isX is unsupported in web.

The recommended way is using kIsWeb from flutter foundations: flutter/flutter#36126.

This does not enable sembast usage in web. It still needs the sembast_web package.

Platform.isX is unsupported in web
@phillwiggins
Copy link
Member

Hey, excellent work. Please can you point this MR to the branch labelled release/1.0.27.

Thanks in advance!

@fischerscode
Copy link
Contributor

Looks great.
Does this make the SDK fully usable for web if the sharedPref. CoreStore is used?

@nstrelow
Copy link
Contributor Author

My bad, will close and reopen on other branch.

@maaeps I have not thoroughly tested it, but it fixes the first problem I encountered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants