-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
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.
Description
As of right now, the setFocusPoint and setExposurePoint methods in the camera plugin do not correctly rotate the supplied coordinates according to the UI orientation, causing them to only show correct behaviour in one orientation. For Android this is landscape left, on iOS portrait up. This can be reproduced by running the example app in any other orientation, as it can be seen the camera will focus somewhere other than where the preview widget was tapped. (Be sure to lock the autofocus first on Android)
- A fix for the Android side is already included in part 9 of the Android refactor that is currently going on (PR [camera] android-rework part 9: Final implementation of camera class plugins#4059)
I am currently submitting a PR for the fix for iOS.A fix for iOS has now beensubmittedmerged in [camera] Fix coordinate rotation for setting focus- and exposure points on iOS plugins#4158
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.