Skip to content

[android] Animation when opening keyboard is unsynchronized #116836

@delfme

Description

@delfme

This issue is the android version of #105687 (which is fixed by flutter/engine@a5ff362).

VID_20231024_082550.mp4

The keyboard animation is jittery most of time.
Notice that the issue is much evident and occurs often on real device running in release mode.

As pointed out in the iOS fix, issue is:
"if setViewportMetrics called before framework's vsync process callback (rebuild & layout & paint), will cause jitter keyboard animation.So this PR is to keep the time when updateViewportMetrics call to framework side legal".

Demo code here:
https://github.com/delfme/flutter-native-text-input-repo

With this fix, flutter would finally provide a native-like keyboard animation on both ios and android 🚀

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: fidelityMatching the OEM platforms bettera: qualityA truly polished experiencea: text inputEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.found in release: 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions