Repository: flutter
Issue: [camera] setFocusPoint rotates on iOS in orientation locked app with orientationlocked camera
Labels: platform-ios,p: camera,package,has reproducible steps,P2,team-ios,triaged-ios,found in release: 3.22,found in release: 3.24

### Steps to reproduce

1. Modify the camera example app. Lock the orientation of the app by adding `SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);` in `CameraApp.build(context)`
2. Execute `flutter run` on the iOS [camera/example](https://pub.dev/packages/camera/example)
3. Lock the orientation of the camera in the running app
4. Unlock rotation of the phone
5. Physically turn the phone to landscape
6. Tap to set focus

### Expected results

Focus should be set at the touched point.

### Actual results

if the iPhone is turned clockwise, the focus point is moved 90 deg clockwise around the center.  
Likewise, if the iPhone is turned counterclockwise, the focus point is moved 90 deg countclockwise.

### Code sample

<details open><summary>Code sample</summary>
See example
```dart
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

https://github.com/user-attachments/assets/1f23a4c3-08e7-4089-add7-a317a43a6943

</details>



### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.4 23E214 darwin-arm64, locale en-DK)
    • Flutter version 3.22.2 on channel stable at /Users/theme1256/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (7 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/theme1256/Library/Android/sdk
    • Platform android-34, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.92.0

[✓] Connected device (5 available)
    • XQ BQ52 (mobile)                   • QV78067N9E                • android-arm64  • Android 13 (API 33)
    • iPhone 12 (mobile)                 • 00008101-001C35200CEA001E • ios            • iOS 17.5.1 21F90
    • macOS (desktop)                    • macos                     • darwin-arm64   • macOS 14.4 23E214 darwin-arm64
    • Mac Designed for iPad (desktop)    • mac-designed-for-ipad     • darwin         • macOS 14.4 23E214 darwin-arm64
    • Chrome (web)                       • chrome                    • web-javascript • Google Chrome 126.0.6478.183

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>