dart-lang / dart-lang/pub-dev

mechanism to indicate package only supports dart and not flutter

Open
#6,582 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.