Skip to content

[Feature Request] Allow geometry and color primitives to be used in non-Flutter projects #119424

@cbatson

Description

@cbatson

Use case

Flutter, or more precisely dart:ui, includes several useful geometry and other primitives (examples include Rect, Offset, Size, Color, etc.) which have no dependence on the engine.

It would be handy in some scenarios, such as offline processing tools, to have access to these primitives in a non-Flutter project.

Attempting to import dart:ui in a pure Dart project results in an error, making these primitives inaccessible outside of Flutter.

See also How can I use dart:ui in a command line Dart application? (not authored by me).

Proposal

Perhaps leaf classes like the aforementioned with no dependence on the engine could be broken out into a separate package.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions