mechanism to indicate package only supports dart and not flutter
Open
Type: enhancement
- Dominant language
- Dart
- Stars
- 944
- Forks
- 184
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 12
Description
Since flutter web stuff can reasonably import `dart:html` and use things like [`localStorage`](https://api.dart.dev/stable/2.19.6/dart-html/Window/localStorage.html) (I assume), we can't detect that a package isn't really compatible with Flutter Web, just because it imports `dart:html`.
We could try to detect if it uses the DOM parts of `dart:html`, but that's probably not a good idea, you can use those parts in a flutter web app to compute styles, or maybe do something else.
-------------------
We probably need a manual mechanism for indicating which SDKs a package is intended to be used with.
Contributor guide
Assessment
This issue has not been assessed yet.