Skip to content

Dart Standalone and Flutter support in a single package #7

@unsuitable001

Description

@unsuitable001

Currently, in this repo only contains code that are solely dependent on Dart SDK. But, when we add support for mobile devices, we need access to Flutter SDK too.

I've already added Android support in another repo that depends on this repo. But, managing two different repo can be cumbersome for devs and users both.

So, I want to make this package as such that it can act as a Dart Standalone and a Flutter package both.
That means, someone can use pub get and flutter pub get both. i.e making the Flutter SDK optional if someone don't want flutter support.

I've looked into webcrypto as it works both as standalone and flutter package. But I have to do flutter pub get. Just pub get won't work. So, though someone is able to use it without actually using Flutter, still they need Flutter SDK setup in their system.

Is there any solution to this? (Like, conditional dependency 🤔 ?)

Ref: #3

CC @mannprerak2 @dcharkes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions