Skip to content

Temporary fix for flutter-web compatibility. #79

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

Temporary fix for flutter-web compatibility. #79

wants to merge 1 commit into from

Conversation

kasp1
Copy link

@kasp1 kasp1 commented Sep 12, 2019

Compiling for web currently fails because of the use of dart:io (used as Platform.is* in platform.dart), which is not supported for web. Discussion

So far there doesn't seem to be anything like Platform.isWeb. Also what style should be used for web is questionable, perhaps making it Material by default for now is the best idea and users should be still able to switch between Material/Cuportino if they wish (again not sure if web supports Cuportino at this point).

This PR works around the Platform.* statements by utilizing the temporary(?) constant kIsWeb from Flutter foundation.

@aqwert
Copy link
Collaborator

aqwert commented Sep 13, 2019

I have merged #78 as it too solved the issue, just with less code. Thanks for the contribution though

@aqwert aqwert closed this Sep 13, 2019
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.

2 participants