Repository: flutter
Issue: Using Apple Pencil on a text field makes the full size keyboard unavailable until the textfield is tapped multiple times
Labels: a: text input,platform-ios,a: tablet,has reproducible steps,P2,team-text-input,triaged-text-input,found in release: 3.28

### Steps to reproduce

1. Press text field with finger, full size keyboard appears.
2. Dismiss the keyboard.
3. Press text field with Pencil, a menu appears in the corner with option to show mini keyboard.
4. Dismiss the menu.
5. Press text field with finger again, now you get the menu or mini keyboard instead of the full keyboard.

This seems to have something to do with the Pencil's Scribble feature, even though stylusHandwritingEnabled or scribbleEnabled is set to false on the text field. It only happens when Scribble is turned on in the iPad's Apple Pencil settings - if it's turned off, you always get the full size keyboard.

### Expected results

Compare to native behavior in for example Safari's search bar:
1. Press with finger, full size keyboard
2. Dismiss keyboard
3. Press with Pencil, menu in the corner
4. Dismiss menu
5. Press with finger, full size keyboard again

### Actual results

.

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/cupertino.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MainApp2());
}

class MainApp2 extends StatefulWidget {
  const MainApp2({super.key});
  
  @override
  State<MainApp2> createState() => _MainApp2State();
}

class _MainApp2State extends State<MainApp2> {
  @override
  Widget build(BuildContext context) {
    return CupertinoApp(home: DefaultTextStyle(style: TextStyle(), child: Container(color: Color(0xffaaaaaa), padding: EdgeInsets.all(50), child: Center(child:
      CupertinoTextField(
        stylusHandwritingEnabled: false
      )
    ))));
  }
}
```

</details>


### Screenshots or Video

_No response_

### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel master, 3.28.0-2.0.pre.38551, on macOS 13.6.7 22G720 darwin-arm64, locale en-US)
    • Flutter version 3.28.0-2.0.pre.38551 on channel master at /Users/weirdhat/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 188d1e1999 (6 hours ago), 2024-12-20 17:13:10 +0800
    • Engine revision 188d1e1999
    • Dart version 3.7.0 (build 3.7.0-260.0.dev)
    • DevTools version 2.41.0

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/weirdhat/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/macos-android-setup for more details.

[!] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    ! CocoaPods 1.12.1 out of date (1.16.2 is recommended).
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.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 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.96.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.102.0

[✓] Connected device (4 available)
    • JK iPad 2024 (mobile)           • 00008103-001659302668801E • ios            • iOS 17.6.1 21G93
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 13.6.7 22G720 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 13.6.7 22G720 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 131.0.6778.205
    ! Error: Browsing on the local area network for JACOB’s iPad (2). Ensure the device is unlocked and attached with a cable or associated with the same local area
      network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.
```

</details>