binayshaw7777
02/19/2024, 11:58 AMColumn {
BasicTextField() {...}
Button(...)
}
The keyboard overlaps the bottom sheet for Android 10 and below. But works fine for 11+ (hides the button though)
So, what I did was, added window insets like:
if (Current Android version < Android 11) WindowInset.ime else WindowInsets(0,0,0,0)
Is there any other fix you guys know? The UI literally sucks and it's not how it should be. It normally adds so much blank space in between sheet and keyboardNthily
02/19/2024, 12:23 PMimePadding
? 👀binayshaw7777
02/19/2024, 12:32 PMNthily
02/19/2024, 12:40 PMbinayshaw7777
02/19/2024, 12:46 PMbinayshaw7777
02/19/2024, 12:47 PMNthily
02/19/2024, 12:50 PMColumn {
BasicTextField()
ToolBar(Modifier.imePadding().navigationBarsPadding())
}
the above code has no problem for me, it works on Android 7 and above
BTW, Did you set android:windowSoftInputMode="adjustResize"
in Manifest.xml?binayshaw7777
02/19/2024, 12:51 PMbinayshaw7777
02/19/2024, 12:52 PMNthily
02/19/2024, 12:52 PMbinayshaw7777
02/19/2024, 1:06 PMbinayshaw7777
02/19/2024, 3:41 PMZach Klippenstein (he/him) [MOD]
02/20/2024, 3:41 PMZach Klippenstein (he/him) [MOD]
02/20/2024, 3:43 PMZach Klippenstein (he/him) [MOD]
02/20/2024, 3:43 PMbinayshaw7777
02/20/2024, 3:45 PMbinayshaw7777
02/20/2024, 3:46 PMbinayshaw7777
02/20/2024, 3:46 PM