Skip to content

[camera] Implement lensType support on iOS #174390

Closed
flutter/packages
#7653

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.

Activity

  1. darshankawar commented on Aug 26, 2025

    @darshankawar
    Member

    @trashcoder
    The camerasLensType export was added to the package as part of https://github.com/flutter/packages.
    What is the expected result are you looking for to return on debugPrint(availableCameras.first.lensType.toString();?
    Maybe it is similar to #91247 ?

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Aug 26, 2025
  3. trashcoder commented on Aug 26, 2025

    @trashcoder
    Author

    @darshankawar
    When selecting a CameraDescription the property lensType should have one of first three values:

    • wide
    • telephoto
    • ultraWide
    • unknown

    https://pub.dev/documentation/camera/latest/camera/CameraLensType.html

    But on my iPhone 15 Pro it returns on all three backside-lenses:
    CameraLensType.unknown

  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Aug 26, 2025
  5. stuartmorgan-g commented on Aug 26, 2025

    @stuartmorgan-g
    Contributor

    But on my iPhone 15 Pro it returns on all three backside-lenses:
    CameraLensType.unknown

    The iOS implementation of the feature hasn't landed yet.

  6. changed the title [-]camera 0.11.2 lenstype still "unknown" for all available cameras[/-] [+][camera] Implement `lensType` support on iOS[/+] on Aug 26, 2025
  7. added
    platform-iosiOS applications specifically
    packageflutter/packages repository. See also p: labels.
    team-iosOwned by iOS platform team
    and removed
    in triagePresently being triaged by the triage team
    on Aug 26, 2025
  8. added
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Aug 28, 2025
  9. added
    r: fixedIssue is closed as already fixed in a newer version
    on Oct 3, 2025
  10. github-actions commented on Oct 17, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  11. locked as resolved and limited conversation to collaborators on Oct 17, 2025
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 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