Skip to content

[camera_android_camerax] Refactor camera state fields into camera state object #189599

Open

Description

@camsim99

Derived from flutter/packages#12145 (comment)

There are a bunch of variables in the camera_android_camerax plugin that track the state of the camera and its different use cases (image capture, video recording, etc.). To improve the clarity and readability of the state of the camera, we should refactor these into a CameraState sort of object that can respond to the different lifecycle events.

Activity

  1. added
    platform-androidAndroid applications specifically
    packageflutter/packages repository. See also p: labels.
    P2Important issues not at the top of the work list
    c: tech-debtTechnical debt, code quality, testing, etc.
    team-androidOwned by Android platform team
    triaged-androidTriaged by Android platform team
    on Jul 16, 2026
  2. moved this to [Non-blocking] Issues in Deprecating camera_androidon Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.p: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions