Repository: flutter
Issue: Pop gesture not work when Android use CupertinoPageTransitionsBuilder and iOS use other PageTransitionsBuilder.
Labels: framework,f: material design,has reproducible steps,P3,found in release: 3.10,found in release: 3.12,team-design,triaged-design

## ISSUE

### 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

1. run demo on android
2. click 'push', open `/b` page
3. swipe from the left edge of the screen

### Expected results

back to home page

### Actual results

Click anywhere on the screen, no response.

### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final Map<String, WidgetBuilder> routes = <String, WidgetBuilder>{
      '/': (BuildContext context) => Scaffold(
            appBar: AppBar(
              title: const Text('/'),
            ),
            body: TextButton(
              child: const Text('push'),
              onPressed: () {
                Navigator.of(context).pushNamed('/b');
              },
            ),
          ),
      '/b': (BuildContext context) => Scaffold(
            appBar: AppBar(
              title: const Text('/b'),
            ),
            body: TextButton(
              child: const Text('pop'),
              onPressed: () {
                Navigator.pop(context);
              },
            ),
          ),
    };
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        pageTransitionsTheme: const PageTransitionsTheme(
          builders: <TargetPlatform, PageTransitionsBuilder>{
            TargetPlatform.android: CupertinoPageTransitionsBuilder(),
            // iOS uses different PageTransitionsBuilder
            TargetPlatform.iOS: FadeUpwardsPageTransitionsBuilder(),
          },
        ),
      ),
      routes: routes,
    );
  }
}
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

https://github.com/flutter/flutter/assets/4396864/f46270f9-3548-4e1b-9ab4-b4e91f94f2f3

</details>


### Logs

no error messages


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [版本 10.0.22631.1972], locale zh-CN)
    • Flutter version 3.10.5 on channel stable at C:\SDK\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (3 weeks ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1
    • Flutter download mirror https://storage.flutter-io.cn

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at C:\SDK\android-sdk
    • Platform android-33, build-tools 32.0.0
    • ANDROID_HOME = C:\SDK\android-sdk
    • ANDROID_SDK_ROOT = C:\SDK\android-sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.22)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.33130.400
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 2022.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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-b2043.56-9586694)

[√] IntelliJ IDEA Community Edition (version 2023.1)
    • IntelliJ at C:\Users\ipcjs\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\231.9161.38
    • Flutter plugin version 74.0.4
    • Dart plugin version 231.9161.14

[√] VS Code (version 1.80.0)
    • VS Code at C:\Users\ipcjs\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.68.0

[√] Proxy Configuration
    • HTTP_PROXY is set
    • NO_PROXY is localhost,127.0.0.1,::1,192.168.0.230,dl.google.com,maven.aliyun.com,cdn.npm.taobao.org,registry.npm.taobao.org,npmmirror.com,registry.npmmirror.com,storage.flutter-io.cn,pub.flutter-io.cn,gitee.com,engdownload.eassos.cn,upos-hz-mirrorakam.akamaized.net,www.bmtasmartbus.com,mirrors.tuna.tsinghua.edu.cn,amappc.oss-cn-zhangjiakou.aliyuncs.com,lbsyun-baidu.cdn.bcebos.com,a.amap.com,cdn.ipcjs.top,baidu.com,mirrors.aliyun.com,download.pytorch.org,*.coding.net,*.myqcloud.com,apple.com
    • NO_PROXY contains localhost
    • NO_PROXY contains ::1
    • NO_PROXY contains 127.0.0.1

[√] Connected device (5 available)
    • Pixel 6 Pro (mobile)              • 1A061FDEE004XX  • android-arm64  • Android 13 (API 33)
    • Subsystem for Android TM (mobile) • 127.0.0.1:58526 • android-x64    • Android 13 (API 33)
    • Windows (desktop)                 • windows         • windows-x64    • Microsoft Windows [版本 10.0.22631.1972]
    • Chrome (web)                      • chrome          • web-javascript • Google Chrome 114.0.5735.199
    • Edge (web)                        • edge            • web-javascript • Microsoft Edge 114.0.1823.58

[√] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>

## Reason

The problematic code is this line: : https://github.com/flutter/flutter/blob/d55a7d89e05ede19676ef8065e4c72123107b6dd/packages/flutter/lib/src/material/page_transitions_theme.dart#L758-L760

When the pop gesture is triggered, it forces the use of the iOS platform's `PageTransitionsBuilder`, thus causing the bug.

I create #114303 to remove this line of code, but it introduces a breaking change, so it was reverted.

Hopefully we can find a better way to fix this bug.