Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust keyboard detection on Android #5

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

mtallenca
Copy link

The ratio used in android keyboard check was 85%. i.e. if less than 85% of the screen is available, assume the keyboard is up.

On the Pixel 9 Pro, only 82.2% of the screen is available in landscape mode with normal status bar and gesture bar on the bottom. This PR adjusts the check ratio from 85% to 82% so landscape on Pixel 9 Pro isn't incorrectly flagged as keyboard visible.

@EchoEllet
Copy link
Owner

Thanks for the contribution, this functionality is error-prone and needs Android native tests against different devices with different sizes since this is very dynamic. However, we don't plan to work on this temp fork much longer, the plugin quill_native_bridge is a work in progress (last PR FlutterQuill/quill-native-bridge#9).

@EchoEllet EchoEllet merged commit b0634be into EchoEllet:master Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants