Skip to content

Hybrid package incorrectly marked as Flutter-only #1351

Closed
celest-dev/celest
#142
@dnys1

Description

@dnys1

Related to: dart-lang/pub#3563

I recently published native_storage which is a hybrid package, capable of being used in Dart-only and Flutter contexts. It has no direct or transitive dependencies on the Flutter SDK.

It does, however, declare a flutter manifest in the pubspec.yaml for the cases in which the host project is a Flutter app:

https://github.com/celest-dev/celest/blob/32f3c44241468951e07470109f1dc4f1fc266283/packages/native/storage/pubspec.yaml#L45-L49

This causes pana to label the package as Flutter-only due to the following:

bool get usesFlutter =>
dependsOnFlutterSdk || dependsOnFlutterPackage || hasFlutterKey;

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions