Tino Rachui
03/20/2025, 6:11 AMScaffold(contentWindowInsets = WindowInsets.safeGestures,...) { innerPadding -> ... }
Obviously it's dependent on the API level. How to best deal with this?Stylianos Gakis
03/20/2025, 8:07 AMTino Rachui
03/20/2025, 6:14 PMStylianos Gakis
03/20/2025, 7:09 PMsafeGestures
insets instead of just using the safeDrawing
ones. Is there a particular reason?Tino Rachui
03/21/2025, 5:29 AMStylianos Gakis
03/21/2025, 12:36 PMinset a little bit left and rightYou most likely want to control that yourself, and to not have it be different depending on if someone uses 3 button or gesture navigation. Even in a swipe-to-delete environment, sure at the edges there will be some overlap where the back gesture will take precedent over your swipe gesture, however this would still most likely be what your users expect. Having a quite big empty space on the two sides will most likely look odd. But just give it all a try and make sure to test with both navigation setups to make sure it looks as you want it to. For reference, in our project we never use safeGestures for drawing content, but we use
safeDrawing
instead.Tino Rachui
03/21/2025, 3:06 PM