Repository: flutter
Issue: After changing preferred orientation, it is automatically rollback origin rotation on iOS 16
Labels: platform-ios,engine,e: OS-version specific,a: layout,has reproducible steps,P2,team-ios,triaged-ios,found in release: 3.13,found in release: 3.14

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

I have developed with flutter and i have a problem in Device Rotation. same as  https://stackoverflow.com/questions/73724575/flutter-ios16-rotation-issue

for example, when an user clicked a button, it makes rotate device.(below code)
`SystemChrome.setPreferredOrientations(
  _isPortrait
      ? [
          DeviceOrientation.landscapeRight,
        ]
      : [
          DeviceOrientation.portraitUp,
        ],
)`

and end of rotation, i will change rotation landscape + portrait(to rotate user device directly)

so i used following code.

`SystemChrome.setPreferredOrientations(
  _isPortrait
      ? [
          DeviceOrientation.landscapeRight,
        ]
      : [
          DeviceOrientation.portraitUp,
        ],
).then((value) {
  SystemChrome.setPreferredOrientations([]);
});`

It is working under iOS16.

But on iOS16, it is not working.(after change rotation, it is rollback origin rotation with animation)

### Expected results

works fine on iOS13.3.1

https://github.com/flutter/flutter/assets/12041872/fc2b5e45-5752-4f15-8e62-9abf356ea488



### Actual results

works weird on iOS16.1.1

https://github.com/flutter/flutter/assets/12041872/59ca216a-1512-4103-a0f9-2b0bff437d8f



### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Flutter Demo',
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  void _rotateToLandscape() {
    SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft])
        .then(
      (value) =>
          SystemChrome.setPreferredOrientations(DeviceOrientation.values),
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: const Center(
        child: FlutterLogo(
          size: 100,
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _rotateToLandscape,
        child: const Icon(Icons.rotate_left),
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
flutter doctor -v
[✓] Flutter (Channel stable, 3.10.5, on macOS 12.6.3 21G419 darwin-arm64, locale
    zh-Hans-CN)
    • Flutter version 3.10.5 on channel stable at /Users/hky/Flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (9 weeks ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/hky/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • 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
      11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.81.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.70.0

[✓] Connected device (3 available)
    • XXX的iPhone 12 (mobile) • XXXXXXX-XXXXXXXXXXXXXX • ios            • iOS
      16.1.1 20B101
    • macOS (desktop)        • macos                     • darwin-arm64   •
      macOS 12.6.3 21G419 darwin-arm64
    • Chrome (web)           • chrome                    • web-javascript •
      Google Chrome 115.0.5790.170

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>