google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.31k stars 592 forks source link

How do I remove the Navigation Bars space from the Keyboard? #1772

Closed jetberrocal closed 1 month ago

jetberrocal commented 1 month ago

I have the same problem as post:There's a space between content and keyboard when using imePadding.

The solution proposed to use navigationBarsWithImePadding only instead of imePadding & navigationBarsPadding no longer is available for current Compose version (2024).

How do I remove the Navigation Bars space from the Keyboard?

felixlix45 commented 1 month ago

I got the same issue, did you already solved the issue?

jetberrocal commented 1 month ago

Felix:

I found a way to manage the problem. I made the BottomNavigationBar to be composed when the imeState was false only, that way the space is not shown. It seems the space is reserved for the Bottom Navigation Bar. If you just make them invisible it will still reserve the space.

On Tue, Jun 4, 2024 at 3:46 AM felixlix45 @.***> wrote:

I got the same issue, did you already solved the issue?

— Reply to this email directly, view it on GitHub https://github.com/google/accompanist/issues/1772#issuecomment-2146837178, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5F7ZD5X2OD746OFNZHP5TZFVWELAVCNFSM6AAAAABH4JRTJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBWHAZTOMJXHA . You are receiving this because you authored the thread.Message ID: @.***>

alexvanyo commented 1 month ago

Insets support in accompanist has been replaced by upstream support. The equivalent to Modifier.navigationBarsWithImePadding() is Modifier.navigationBarsPadding().imePadding() using consumption, as described in the migration guide.

jetberrocal commented 1 month ago

Actually that didn't work for me. It was worst, because it added more space.

On Wed, Jun 5, 2024, 7:05 PM Alex Vanyo @.***> wrote:

Insets support in accompanist has been replaced by upstream support. The equivalent to Modifier.navigationBarsWithImePadding() is Modifier.navigationBarsPadding().imePadding() using consumption, as described in the migration guide https://google.github.io/accompanist/insets/#migration-table.

— Reply to this email directly, view it on GitHub https://github.com/google/accompanist/issues/1772#issuecomment-2151101804, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5F7ZGUAWSNGG3U6BHLHFDZF6KU3AVCNFSM6AAAAABH4JRTJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRGEYDCOBQGQ . You are receiving this because you authored the thread.Message ID: @.***>