79106378

Date: 2024-10-20 04:52:11
Score: 2.5
Natty:
Report link

I'm unsure whether I understood your question, but why not just use the align property? Layout (Modifier = Modifier. align(Alignment.TopStart)) The position of a composable is calculated from its initial alignment. I just implemented a BoundingBox to check whether a composable is inside another, and it depends on its initial alignment. We only need to use a Modifier.graphicsLayer { transformOrigin = transformOrigin.copy(0f, 0f) } for the coordinate system's origin when we use rotation or scale.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nom XD