Skip to content

[camera] Implement lensType support on iOS #174390

@trashcoder

Description

@trashcoder

Steps to reproduce

  1. Get the list of all available cameras.
  2. Show the lenstype.

const availableCameras = await availableCameras();
debugPrint(availableCameras.first.lensType.toString();

Expected results

It should show the actual lensType of the selected CameraDescription.

Actual results

It shows:
CameraLensType.unknown

Code sample

Code sample
const availableCameras =  await availableCameras();
debugPrint(availableCameras.first.lensType.toString();

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Image Image

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.32.8, on macOS 15.6.1 24G90 darwin-arm64, locale de-DE)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1.3)
[✓] IntelliJ IDEA Community Edition (version 2025.2)
[✓] VS Code (version 1.103.2)
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions