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

Fix: Make KeyboardScaffoldSafeArea work when not at bottom of screen (Resolves #2489) #2490

Merged

Conversation

matthew-carroll
Copy link
Contributor

Fix: Make KeyboardScaffoldSafeArea work when not at bottom of screen (Resolves #2489)

Apparently when I recently created the new implementation of the keyboard scaffold I never tested with widgets below the chat editor, such as bottom nav tabs. When there's a widget below the editor, we were pushing the editor up too far, equal to the height of whatever was below it before pushing it up.

There's one known shortcoming even with the PR. When the content below the editor changes size, the editor position is one frame behind, leading to some jitter. This is likely to happen because the widget at the bottom of the screen is probably wrapped in a SafeArea to deal with bottom insets.

Here's an example of the jitter:

Screen.Recording.2025-01-03.at.4.48.49.PM.mov

The same demo on an SE, which doesn't the bottom safe area space, is stable:

Screen.Recording.2025-01-03.at.4.48.03.PM.mov

Copy link
Collaborator

@angelosilvestre angelosilvestre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matthew-carroll matthew-carroll merged commit 31a4650 into main Jan 6, 2025
16 checks passed
@matthew-carroll matthew-carroll deleted the 2489_fix-keyboard-scaffold-not-at-bottom-of-screen branch January 6, 2025 22:22
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.

[BUG] - Keyboard safe area doesn't handle widgets that aren't on bottom of screen
2 participants