mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Currently during the keyboard animation, the navigation bar insets are subtracted from the keyboard insets. This is correct when the app isn't laid out behind the navigation bar, but results in incorrect viewInsets when the app's running in edge-to-edge or fullscreen. This change checks if the app is being laid out behind the navigation bar and adjusts the bottom insets accordingly during the keyboard animation. Fixes https://github.com/flutter/flutter/issues/89914 Tested on Android 13 (Pixel 7) using the code sample here: https://github.com/flutter/flutter/issues/109623 ### Before https://user-images.githubusercontent.com/20386860/216786596-24c764b1-a71c-42cf-97a2-3ba10b717819.mp4 ### After https://user-images.githubusercontent.com/20386860/216786591-155ec6a6-b3c5-41e0-a45f-169861077ce2.mp4