Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix crash on Flutter Web #223

Merged
merged 1 commit into from
Jul 19, 2019
Merged

Fix crash on Flutter Web #223

merged 1 commit into from
Jul 19, 2019

Conversation

rostopira
Copy link
Contributor

No description provided.

@WahdanZ
Copy link
Contributor

WahdanZ commented Jul 15, 2019

Could you show us how to use the sdk with flutter web ?

@rostopira
Copy link
Contributor Author

rostopira commented Jul 15, 2019

@WahdanZ it's basically straightforward with some caveats

flutter channel master
flutter upgrade --force
flutter run -d chrome

LiveQuery not working currently (I'm working on it)
And for CoreStore I'm using stub (WIP as well)
SecurityContext is unsupported, throws on constructor, just don't use it
Also be aware, that it's doesn't support dart:io and will throw even on Platform.isAndroid
You can still use it like this:

if (identical(0, 0.0)) {
  // I'm Flutter Web
  // Use 'dart:html' package
} else if (Platform.isAndroid) {
  // Use 'dart:io'
}

@rostopira
Copy link
Contributor Author

As I already said, it's WIP, I will provide more PR's for flutter web soon, just part by part, not all at once

@phillwiggins phillwiggins merged commit efd0a0f into parse-community:release/1.0.23 Jul 19, 2019
fischerscode pushed a commit to fischerscode/Parse-SDK-Flutter that referenced this pull request Sep 5, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants