Shoaib khalid
10/04/2023, 6:00 PMAlejandro Rios
10/04/2023, 6:28 PMOnGloballyPositionedModifier
modifier, there was this option but not sure if already worksAlexander Zhirkevich
10/04/2023, 7:48 PMLocalConfiguration.current.screenWidthDp
on Android and LocalWindowInfo.current.containerSize
on non-Android (starting from 1.5.10-beta01).Alex Vanyo
10/06/2023, 6:16 PMLocalConfiguration.current.screenWidthDp
on Android - due to insets it can be smaller than the actual window size, and due to density rounding it can be off by at least a pixel from the true actual window size. WindowMetricsCalculator.computeCurrentWindowMetrics
is the way to go.