Adib Faramarzi
08/21/2021, 6:53 AMsize
of the screen as a value?
I thought it would be available in LocalDensity.current
but it isn't.Adib Faramarzi
08/21/2021, 6:55 AMLocalConfiguration.current.screenHeightDp
Colton Idle
08/21/2021, 7:10 AMAdib Faramarzi
08/21/2021, 7:11 AMAshu
08/21/2021, 11:10 AMAdib Faramarzi
08/21/2021, 11:57 AMZach Klippenstein (he/him) [MOD]
08/21/2021, 2:07 PMBoxWithConstraints
is the usual way to do what Colton is talking about. The onGloballyPositioned
modifier is the wrong thing for that in most cases, can cause a frame delay.Adib Faramarzi
08/21/2021, 2:14 PMLatout
not the window. You need to get the window information anywhere you want.Zach Klippenstein (he/him) [MOD]
08/21/2021, 2:22 PMBoxWithConstraints
is usually the simplest way to do that. It sounds like that’s not what you need but wanted to clarify.