Repository navigation
[camera] Implement lensType support on iOS #174390
Copy link
Copy link
Closed
flutter/packages
#7653Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Steps to reproduce
- Get the list of all available cameras.
- 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
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.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team

Activity
darshankawar commentedon Aug 26, 2025
@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 ?
trashcoder commentedon Aug 26, 2025
@darshankawar
When selecting a CameraDescription the property lensType should have one of first three values:
https://pub.dev/documentation/camera/latest/camera/CameraLensType.html
But on my iPhone 15 Pro it returns on all three backside-lenses:
CameraLensType.unknown
stuartmorgan-g commentedon Aug 26, 2025
The iOS implementation of the feature hasn't landed yet.
[-]camera 0.11.2 lenstype still "unknown" for all available cameras[/-][+][camera] Implement `lensType` support on iOS[/+][Camera] Add lens type information (iOS) (flutter#7653)
github-actions commentedon Oct 17, 2025
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 -vand a minimal reproduction of the issue.[Camera] Add lens type information (iOS) (flutter#7653)