Repository: flutter
Issue: iOS GestureDetector button OnTapDown takes longer time to response when the clickable gesture space is near the edge
Labels: platform-ios,framework,f: gestures,has reproducible steps,P2,found in release: 3.7,found in release: 3.8,team-ios,triaged-ios

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->
1. use the example below
2. Tap on the bottom left 'mic_none' icon to observe the result.
3. Try change the size of the 'mic_none' icon to 100.
4. Tap on the bottom icon and observe the result again.

1. Execute `flutter run` on the code sample <!-- (see "Code sample" section below) -->
5. ... <!-- describe steps to demonstrate bug -->
6. ... <!-- for example "Tap on X and see a crash" -->

**Expected results:** The onTapDown at gesture detector should response immediately as larger icon's effect have.

**Actual results:** The onTapDown at gesture detector takes longer response time (around hundred milliseconds).

<details>
<summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const 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> {
  ValueNotifier<int> recordingState = ValueNotifier(0);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Stack(
          children: <Widget>[
            Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Expanded(
                  child: ListView.builder(
                    itemBuilder: (BuildContext context, int index) {
                      return Container(
                        height: 100,
                        color: Colors.red[index % 9 * 100],
                      );
                    },
                  ),
                ),
                Row(
                  children: <Widget>[
                    GestureDetector(
                      onTapDown: (TapDownDetails detail) {
                        recordingState.value = 1;

                        if (recordingState.value == 1) {
                          recordingState.value = 2;
                        }
                      },
                      onTapUp: (TapUpDetails detail) {
                        recordingState.value = 0;
                      },
                      child: Icon(
                        Icons.mic_none,
                        size: 30.0,
                      ),
                    ),
                    Expanded(
                      child: Container(
                        height: 65,
                        color: Colors.blue,
                      ),
                    ),
                  ],
                )
              ],
            ),
            ValueListenableBuilder(
              valueListenable: recordingState,
              builder: (BuildContext _, int value, Widget? __) {
                return Positioned(
                  bottom: 10,
                  left: 5,
                  child: AnimatedContainer(
                    duration: Duration(milliseconds: 300),
                    height: recordingState.value == 2 ? 100 : 0,
                    width: recordingState.value == 2 ? 100 : 0,
                    decoration: BoxDecoration(
                      color: recordingState.value == 2
                          ? Colors.black
                          : Colors.transparent,
                      borderRadius: BorderRadius.circular(1000),
                    ),
                    child: Icon(Icons.mic_none),
                  ),
                );
              },
            ),
          ],
        ),
      ),
    );
  }
}

```

</details>

<details>
  <summary>Logs</summary>

```
[✓] Flutter (Channel stable, 3.3.10, on macOS 13.1 22C65 darwin-arm, locale en-SG)
    • Flutter version 3.3.10 on channel stable at /Users/liewweijun/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (8 weeks ago), 2022-12-15 07:36:55 -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/liewweijun/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/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.11.3

[✓] 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.74.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (3 available)
    • iPhone (mobile) • 00008110-001E29402146401E • ios            • iOS 16.0 20A357
    • macOS (desktop) • macos                     • darwin-arm64   • macOS 13.1 22C65 darwin-arm
    • Chrome (web)    • chrome                    • web-javascript • Google Chrome 109.0.5414.119

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!```

</details>