Skip to content

[iOS]When the keyboard type of the TextField is set to "numer", there is an issue of repeated characters with certain IME. #133424

@abgne

Description

@abgne

Is there an existing issue for this?

Steps to reproduce

  1. Use the sample program I've provided.
  2. Add the Japanese IME to the keyboard on the actual iPad device.(Chinese, Traditional - Zhuyin has the same issue)
  3. Execute the sample program on the actual iPad device.
  4. Ensure the input box remains blank.
  5. Switch to the Japanese input method.
  6. Try pressing only the number key "1".

Expected results

I expect only a single "1".

Actual results

However, in addition to the number key "1" that we pressed, an additional "1" will automatically appear.

Code sample

Code sample

main.dart

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: Colors.amber,
          title: const Text('Flutter Demo'),
        ),
        body: const Padding(
          padding: EdgeInsets.all(8.0),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Text('keyboardType: TextInputType.number'),
              TextField(
                keyboardType: TextInputType.number, // the same: TextInputType.phone
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

The issue occurs only on the actual iPad device; the simulator works normally.

RPReplay_Final1693185994.MP4

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[!] Flutter (Channel stable, 3.13.1, on macOS 13.1 22C65 darwin-x64, locale zh-Hant-TW)
    • Flutter version 3.13.1 on channel stable at /Users/user/Development/flutter
    ! Warning: `dart` on your path resolves to /usr/local/Cellar/dart/3.1.0/libexec/bin/dart, which is not inside your current Flutter SDK checkout at
      /Users/user/Development/flutter. Consider adding /Users/user/Development/flutter/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e1e47221e8 (5 天前), 2023-08-22 21:43:18 -0700
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0
    • Pub download mirror https://pub.dev
    • Flutter download mirror https://storage.googleapis.com
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/user/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Users/user/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/222.4459.24.2221.9862592/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.11.3

[✓] Android Studio (version 2022.2)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)

[✓] VS Code (version 1.81.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.70.0

[✓] Connected device (3 available)
    • iPad Pro (mobile)       • 00008020-000658D602F9002E            • ios            • iOS 16.2 20C65
    • macOS (desktop)              • macos                                • darwin-x64     • macOS 13.1 22C65 darwin-x64
    • Chrome (web)                 • chrome                               • web-javascript • Google Chrome 116.0.5845.110

[✓] Network resources
    • All expected network resources are available.

Metadata

Metadata

Labels

P1High-priority issues at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)a: tabletTablets and landscape phonesa: text inputEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions