Repository: flutter
Issue: Text selection issue on Dart 3
Labels: a: text input,framework,has reproducible steps,P2,f: selection,found in release: 3.10,team-framework,triaged-framework,found in release: 3.13

### 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. Make sure you have Dart 3 in pubspec.yaml:
environment:
  sdk: ">=3.0.0 <4.0.0"

2. Run the code sample

Case 1: Try to select "text" on the bottom line, and drag the handle to the lower right area

![IMG_4396](https://github.com/flutter/flutter/assets/91447/fafa4266-a61c-4925-862f-2cbb8e41f332)

Case 2: Try to double tap on this area

![simulator_screenshot_9C8DC6F8-0BAA-48F3-9F53-D3870E5B395D](https://github.com/flutter/flutter/assets/91447/a4423ec6-03ae-413b-bd79-b7dec915696f)


### Notes:

- Reproduced both on real device and mobile simulator
- Reproduced on Cupertino and Material
- Reproduced on iOS and Android devices
- Case 1 only reproduced on Dart 3, not on Dart 2

### Expected results

Text is being selected without any issues

### Actual results

Case 1: the handles disappear and you have to select it again

Case 2: the double tap gesture doesnt work in that area, however triple tap works fine

### 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) {
    return const MaterialApp(
      title: 'Flutter Demo',
      home: TestPage(),
    );
  }
}

class TestPage extends StatefulWidget {
  const TestPage({Key? key}) : super(key: key);

  @override
  State<TestPage> createState() => _TestPageState();
}

class _TestPageState extends State<TestPage> {
  final _controller = TextEditingController(text: "Example text\nThis is example text\nText");

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Padding(
          padding: const EdgeInsets.all(20.0),
          child: TextField(
            controller: _controller,
            maxLines: 10,
          ),
        ),
      ),
    );
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

https://github.com/flutter/flutter/assets/91447/e132d8e9-c17c-4759-bdd8-8898b72d62c4




</details>


### Logs

_No response_

### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.10.6, on macOS 12.6.6 21G646 darwin-arm64, locale en-RU)
    • Flutter version 3.10.6 on channel stable at /Users/me/Applications/fvm/versions/3.10.6
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f468f3366c (4 weeks ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/me/Library/Android/sdk
    • Platform android-33, build-tools 30.0.3
    • 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 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.1

[✓] 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.80.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.70.0

[✓] Connected device (2 available)
    • iPhone 13 mini (mobile) • 21B809FB-F130-420B-A117-45DD2145F969 • ios          • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
    • macOS (desktop)         • macos                                • darwin-arm64 • macOS 12.6.6 21G646 darwin-arm64

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>