Skip to content

Conversation

@P0labrD
Copy link
Collaborator

@P0labrD P0labrD commented Oct 8, 2025

What did happen

When updating the lib to ^0.9.0, a golden test failed. The problem occured with the opening of the keyboard during the test, that removed the SafeArea padding.

Why did it happen

The version 0.9.0 introduced a change on how the view "paddings" (padding, viewPadding, viewInsets) were updated on keyboard open close. The viewPadding is not updated when the keyboard opens:

This value remains the same regardless of whether the system is reporting other obstructions in the same physical area of the screen. For example, a software keyboard on the bottom of the screen that may cover and consume the same area that requires bottom padding will not affect this value.

Sources:

📺 Padding, ViewPadding, and ViewInsets, Oh My! | Decoding Flutter
DartPad demo
viewPadding property

Changes

@P0labrD P0labrD merged commit d5a4e89 into main Oct 10, 2025
3 checks passed
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