Skip to content

[camera] Remove CameraImage in the next breaking change #104188

@stuartmorgan-g

Description

@stuartmorgan-g

CameraImage and its component classes were left in the app-facing package with the streaming code during the initial federation, so they couldn't be moved to the platform interface package without breaking changes somewhere without causing collisions. Instead near-duplicates were added to the platform interface package with slightly different names, and the app-facing package translates between them.

We should do a breaking change to camera at some point that removes the app-facing versions and returns (and exports) the platform interface versions directly. Since they are simple immutable data classes, they should be fine to use directly from the platform interface (i.e., we never expect clients to extend/implement them, so they won't be subject to breakage).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: cameraThe camera pluginp: requires breaking changeA change that should be batched into the next breaking change to this packagepackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions