Skip to content

Unable to focus on TextField or open the keyboard again after side pop from another screen #148867

@arabnology

Description

@arabnology

Steps to reproduce

I have a TextField on screen 1. When I go to a new screen using "Navigator.of(context).push(new Screen)" and then using swipe on the new screen side to pop (iOS), I'm unable to click on the TextField again, and the keyboard won't open either.

Note: If i use "Navigator.of(context).pop()" to go back to screen 1, it will work as expected, however, the issue only appears when using Swip on the new screen side to pop back to screen 1.

Tested on iOS only.

Expected results

Be able to focus on the TextField again and to open the keyboard also.

Actual results

Unable to focus on TextField or open the keyboard again.

Code sample

Code sample
PopScope(
        canPop: true,
        child: Scaffold(),
),

Screenshots or Video

Screenshots / Video demonstration
pop_issue.mov

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.5 23F79 darwin-x64, locale
    en-SA)
    • Flutter version 3.22.0 on channel stable at /Users/mimac/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (13 days ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/mimac/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.0

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

[✓] Android Studio (version 2023.3)
    • 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
    • android-studio-dir = /Applications/Android Studio.app
    • Java version OpenJDK Runtime Environment (build
      17.0.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.89.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available)
    • iPad (mobile)                                  • 00008020-000D70D622BA402E            • ios            • iOS 17.5.1 21F90
    • iPad Pro (12.9-inch) (6th generation) (mobile) • 6E203326-1177-4E30-A1E6-EE8FAEF3783E • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)                                • macos                                • darwin-x64     • macOS 14.5 23F79
      darwin-x64
    • Chrome (web)                                   • chrome                               • web-javascript • Google Chrome
      125.0.6422.76

[!] Network resources
    ✗ A network error occurred while checking "https://github.com/": Operation timed out

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions