Skip to content

Laggy First Keyboard Open (Physical iOS Device) #160725

Open
@willsmanley

Description

@willsmanley

Steps to reproduce

checkout https://github.com/willsmanley/flutter-textfield-keyboard-ios-bug

run on a physical ios device (with either impeller or skia)

press the textfield to focus it and trigger a keyboard open. the first time during app run takes 2 second lag. every subsequent time is immediate.

note: it only happens the very first time you open the keyboard. hot restarting and hot reloading will not reset this. only by rebuilding can you experience the lag again.

Expected results

should open immediately like native swift apps

Actual results

opens keyboard after 1-2 second delay

Code sample

https://github.com/willsmanley/flutter-textfield-keyboard-ios-bug

Screenshots or Video

No response

Logs

n/a

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.0, on macOS 15.1 24B2082 darwin-arm64, locale en-US)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] Connected device (6 available)
[✓] Network resources

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: qualityA truly polished experiencea: text inputEntering text in a text field or keyboard related problemsfound in release: 3.27Found to occur in 3.27found in release: 3.28Found to occur in 3.28fyi-text-inputFor the attention of Text Input teamhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions