Repository: flutter
Issue: Can't delete and separate words by Scribble with Apple Pencil written on TextFormField when setting maxLines 1
Labels: a: text input,platform-ios,framework,engine,a: tablet,P2,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. Run the app with the below sample code.
2. Write some words with Apple Pencil on TextFormField with the label `TextFormField with maxLines: 1`.
3. Scratch words or draw the vertical line between characters.

**Expected results:** <!-- what did you want to see? -->
When scratching words, then it is removed from TextFormField, and when drawing the vertical line between characters, then the space is inserted, just like the demo which can be tried from the Apple Pencil setting on iPad.

**Actual results:** <!-- what did you see? -->

https://user-images.githubusercontent.com/125345277/222701827-b3a9df28-69ff-4b83-8da4-1f7eddd20f55.MP4



<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->

```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 MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MainPage(),
    );
  }
}

class MainPage extends StatefulWidget {
  const MainPage({Key? key}) : super(key: key);

  @override
  _MainPageState createState() => _MainPageState();
}

class _MainPageState extends State<MainPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView(
        padding: const EdgeInsets.symmetric(vertical: 64, horizontal: 16),
        children: [
          TextFormField(
            decoration: const InputDecoration(
              labelText: 'TextFormField with maxLines: 1',
              hintText: 'TextFormField with maxLines: 1',
              border: OutlineInputBorder(),
            ),
            maxLines: 1,
          ),
          const SizedBox(height: 16),
          TextFormField(
            decoration: const InputDecoration(
              labelText: 'TextFormField with maxLines: 2',
              hintText: 'TextFormField with maxLines: 2',
              border: OutlineInputBorder(),
            ),
            maxLines: 2,
          ),
        ],
      ),
    );
  }
}

```
</details>

## Output of `flutter --version`
```
Flutter 3.7.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c07f788888 (8 days ago) • 2023-02-22 17:52:33 -0600
Engine • revision 0f359063c4
Tools • Dart 2.19.2 • DevTools 2.20.1
```

## Output of `flutter doctor`
```
[!] Flutter (Channel stable, 3.7.5, on macOS 12.6 21G115 darwin-x64, locale ja-JP)
    ! Warning: `dart` on your path resolves to /usr/local/Cellar/dart/2.18.6/libexec/bin/dart, which is not inside your current Flutter SDK checkout at my/flutter/path. Consider adding my/flutter/bin/path to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.76.0)
[✓] Connected device (4 available)
    ! Error: iPad is busy: Fetching debug symbols for iPad. Xcode will continue when iPad is finished. (code -10)
    ! Error: iPhone X is busy: Fetching debug symbols for iPhone X. Xcode will continue when iPhone X is finished. (code -10)
[✓] HTTP Host Availability
```