commit | c254ecab9cab1b71978689a7c43c74a2041e1512 | [log] [tgz] |
---|---|---|
author | Lenz Paul <34327253+lenzpaul@users.noreply.github.com> | Tue Mar 25 16:07:17 2025 -0400 |
committer | GitHub <noreply@github.com> | Tue Mar 25 20:07:17 2025 +0000 |
tree | 164d63a09d702e95179aac7675f22d1a3d01f2bb | |
parent | 1977932ab4a69bc545788fb6e0cc8bf51bd42f56 [diff] |
[Camera] Add lens type information (iOS) (#8723) This PR adds lens type information. The goal is to identify whether the lens type is wide, ultra-wide, telephoto, etc., as discussed in https://github.com/flutter/flutter/issues/119908. The iOS implementation is complete, so lens data will now be populated on iOS. - Introduces a new CameraLensType enum to provide lens type information about the camera (e.g.: ultra-wide, telephoto, ...) - Adds lensType in the PlatformCameraDescription and CameraDescription classes - Implements utility functions to convert between PlatformCameraLensType and CameraLensType. - Updates auto-generated code (using Pigeon) to reflect these changes. **Current CameraDescription for iPhone 11** ``` [ CameraDescription( com.apple.avfoundation.avcapturedevice.built-in_video:0, CameraLensDirection.back, 90 ), CameraDescription( com.apple.avfoundation.avcapturedevice.built-in_video:1, CameraLensDirection.front, 90 ), CameraDescription( com.apple.avfoundation.avcapturedevice.built-in_video:5, CameraLensDirection.back, 90 ) ] ``` **New CameraDescription for iPhone 11** ``` [ CameraDescription( com.apple.avfoundation.avcapturedevice.built-in_video:0, CameraLensDirection.back, 90, CameraLensType.wide ), CameraDescription( com.apple.avfoundation.avcapturedevice.built-in_video:1, CameraLensDirection.front, 90, CameraLensType.wide ), CameraDescription( com.apple.avfoundation.avcapturedevice.built-in_video:5, CameraLensDirection.back, 90, CameraLensType.ultraWide ) ] ```
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages
directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: