79620490

Date: 2025-05-13 22:16:55
Score: 1
Natty:
Report link

If you want use this sizes in you composables you should use density alongside containerSize

val containerSize = LocalWindowInfo.current.containerSize
val density = LocalDensity.current.density

val screenHeight = containerSize.height.dp / density
val screenWidth = containerSize.width.dp / density
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: zalmek