Nikolas Guillen Leon
05/04/2023, 12:50 PMAlex Vanyo
05/06/2023, 12:28 AMLocalConfiguration.current.screenHeightDp
as part of a calculation to place components.
There's two reasons for that:
• the only time LocalConfiguration.current.screenHeightDp
might be valid to use is at the very top level of your hierarchy, where you assume that your UI is taking up the entire space
• As you are running into, LocalConfiguration.current.screenHeightDp
isn't necessarily the window size, as it can be smaller than the overall window size by an amount of insets (both top and bottom bars), but insets can also change dynamically (taskbar showing and hiding, changing gesture navigation modes)