Sdk for web
Hi.
I need very much parse sdk for web
Thanks for opening this issue!
pub.dev does not display the web support label. But, read the documentation that explains exactly what is needed to run on the web.
Should we (better) indicate that somewhere in our README maybe?
I've seen some Flutter SDKs that show for example 3 icons at the top of their docs to indicate which platforms they support:
- iOS
- Android
- Web
I've seen some Flutter SDKs that show for example 3 icons at the top of their docs to indicate which platforms they support:
- iOS
- Android
- Web
Yes. But for some reason pub.dev doesn't identify support in the Parse package.
In fact, the reason is here.

It's the way he identifies platform support. In practice support already exists even before Flutter Web is stable. For this reason, information was placed right at the beginning of the documentation.
How can we get Flutter display Web compatibility?
How can we get Flutter display Web compatibility?
The analysis instructs to remove the import (dart:o) from a class, but if this is executed the code doesn't work.
Even with this import, the code runs on the web.
I don't know what can be done.
Do you know why dart.io is considered an issue here? I assume there is a reason for that.
@mtrezza @RodrigoSMarques You can skip this pub.dev error with the following code!
Add the following code at the end of pubspec.yaml package
flutter:
plugin:
platforms:
android:
default_package: parse_server_sdk_flutter
ios:
default_package: parse_server_sdk_flutter
linux:
default_package: parse_server_sdk_flutter
macos:
default_package: parse_server_sdk_flutter
web:
default_package: parse_server_sdk_flutter
windows:
default_package: parse_server_sdk_flutter
by doing this, you are indicating that this package works for these platforms
Great! Would you want to open a PR so we can fix this?
Do you know why
dart.iois considered an issue here? I assume there is a reason for that.
the library does not support WEB, as per the documentation.
But the Parse package uses a class that exists in it.
It might be possible to solve the problem by extending the Dart.IO class to another class using this new class in Parse.
I can do some tests, but only by publishing the package will we be sure if it worked.
https://api.flutter.dev/flutter/dart-io/dart-io-library.html
@mtrezza @RodrigoSMarques You can skip this pub.dev error with the following code!
Add the following code at the end of
pubspec.yamlpackageflutter: plugin: platforms: android: default_package: parse_server_sdk_flutter ios: default_package: parse_server_sdk_flutter linux: default_package: parse_server_sdk_flutter macos: default_package: parse_server_sdk_flutter web: default_package: parse_server_sdk_flutter windows: default_package: parse_server_sdk_flutterby doing this, you are indicating that this package works for these platforms
This applies to plugins. Parse-SDK-Flutter is a package.
@mtrezza @RodrigoSMarques You can skip this pub.dev error with the following code! Add the following code at the end of
pubspec.yamlpackageflutter: plugin: platforms: android: default_package: parse_server_sdk_flutter ios: default_package: parse_server_sdk_flutter linux: default_package: parse_server_sdk_flutter macos: default_package: parse_server_sdk_flutter web: default_package: parse_server_sdk_flutter windows: default_package: parse_server_sdk_flutterby doing this, you are indicating that this package works for these platforms
This applies to plugins. Parse-SDK-Flutter is a package.
I tested this in my package [2] and it worked
@RodrigoSMarques should we try it out?
@RodrigoSMarques should we try it out?
There is no way to verify without publishing a new version.
I believe it will not work.
The definition of platforms is not being done by the package settings, but by code analysis.

@RodrigoSMarques should we try it out?
There is no way to verify without publishing a new version.
I believe it will not work.
The definition of platforms is not being done by the package settings, but by code analysis.
please check this page in flutter doc
@RodrigoSMarques should we try it out?
There is no way to verify without publishing a new version. I believe it will not work. The definition of platforms is not being done by the package settings, but by code analysis.
please check this page in flutter doc
As I said here.)
This applies to plugins.
Parse-SDK that's a package., not plugin.
There is difference.

Because it is "pure" Dart, it is not necessary to specify the platforms, as it should run on all platforms.
However, code analysis is performed, which verifies compatibility with platforms.
still have problem
