Chris Johnson
01/12/2023, 11:21 PMWindowCompat.setDecorFitsSystemWindows(window, false) and have tried adding the Modifier.imePadding to the TextField I'd like to consume the insets. Unfortunately the way it is consuming them is it is applying the padding to the TextField but not scrolling my Column. Is there a way to have that ime padding associate with my scroll position?Alex Vanyo
01/12/2023, 11:34 PM1.4.0-alpha04 just landed with some exciting changes in this area!
With the new changes, if the scrolling Column or LazyColumn itself resizes, it should keep the TextField in view as you’d want it to, so that would be my recommendation with those new changes.
If you handle the insets internally, either via contentPadding, or by setting the IME padding on an element inside the scrolling container, the scrolling container doesn’t know that anything changed, to try to adjust accordingly.Chris Johnson
01/12/2023, 11:40 PMModifier.imePadding() now on the TextField it applies bottom padding, which would resize the column. But if I don't add that nothing would happen in 1.4.0-alpha04 correct?Alex Vanyo
01/12/2023, 11:45 PMWindowCompat.setDecorFitsSystemWindows(window, false) and adjustPan vs adjustResize
If you are using WindowCompat.setDecorFitsSystemWindows(window, false) and adjustResize (which leads to the best compatibility across API levels), then yes, you’ll need to apply the imePadding() modifier on the scrolling container (or a parent) so that the size of the container changesChris Johnson
01/12/2023, 11:50 PMZach Klippenstein (he/him) [MOD]
01/13/2023, 3:01 AMcontentPadding on a lazy column.Colton Idle
01/13/2023, 3:55 PMChris Johnson
01/28/2023, 12:10 AM