Skip to content

iOS 18.x ,TextField next focus keyboard disappears and appears again #180842

Description

@renanyoy

Steps to reproduce

run the sample on iPhone 10, and just use the submit on keyboard to focus next field.

Expected results

keyboard staying visible, like on android, or IOS before..

Actual results

keyboard disappears and appears again

Code sample

Code sample
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: SafeArea(
          child: SingleChildScrollView(
            child: Padding(
              padding: EdgeInsets.only(left: 20, right: 20),
              child: Column(
                children: [
                  CupertinoTextField(
                    textInputAction: .next,                    
                  ),
                  TextField(
                    textInputAction: .next,
                    decoration: InputDecoration(label: Text('Field A')),
                  ),
                  TextField(
                    textInputAction: .next,
                    decoration: InputDecoration(label: Text('Field B')),
                  ),
                  TextField(
                    textInputAction: .next,
                    decoration: InputDecoration(label: Text('Field C')),
                  ),
                  TextField(
                    textInputAction: .done,
                    decoration: InputDecoration(label: Text('Field D')),
                  ),
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
Timeline.1.mp4

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
renanyoy@macbook ~ % flutter doctor -v
[✓] Flutter (Channel main, 3.40.0-1.0.pre-526, on macOS 15.7.3 24G419 darwin-arm64, locale en-FR) [1,508ms]
    • Flutter version 3.40.0-1.0.pre-526 on channel main at /Users/renanyoy/code/sdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 81c1cdf898 (2 hours ago), 2026-01-12 05:30:22 -0500
    • Engine revision 81c1cdf898
    • Dart version 3.12.0 (build 3.12.0-14.0.dev)
    • DevTools version 2.54.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios,
      cli-animations, enable-native-assets, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging,
      enable-uiscene-migration, enable-riscv64

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [2.1s]
    • Android SDK at /Users/renanyoy/Library/Android/sdk
    • Emulator version 36.3.10.0 (build_id 14472402) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.2) [1,211ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17C52
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [6ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (5 available) [6.4s]
    • Pixel 6 (mobile)                     • 19291FDF60092F                           • android-arm64  • Android 16 (API 36)
    • iPad de Loïc (2) (wireless) (mobile) • 923212e1640b8f2365131adbc59295a12c2ed4a9 • ios            • iOS 18.7.3 22H217
    • iPhone (mobile)                      • 00008020-000640992209002E                • ios            • iOS 18.7.2 22H124
    • macOS (desktop)                      • macos                                    • darwin-arm64   • macOS 15.7.3 24G419
      darwin-arm64
    • Chrome (web)                         • chrome                                   • web-javascript • Google Chrome
      143.0.7499.193

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

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsf: focusFocus traversal, gaining or losing focusframeworkflutter/packages/flutter repository. See also f: labels.platform-iosiOS applications specificallyteam-text-inputOwned by Text Input teamtriaged-text-inputTriaged by Text Input teamwaiting for PR to land (fixed)A fix is in flight

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions