kenkyee
10/26/2022, 4:01 PMagrosner
10/26/2022, 4:13 PMLoney Chou
10/26/2022, 4:37 PMModifier.onGloballyPositioned
on the root component?Albert Chang
10/26/2022, 4:41 PMOnGlobalLayoutListener
doesn't provide), how about applying something like this to the composable?
Modifier.drawWithContent {
drawContent()
// Drawn
}
kenkyee
10/26/2022, 6:33 PMJiri Bruchanov
10/26/2022, 7:00 PMRichard Steventon
10/26/2022, 7:47 PMAlbert Chang
10/27/2022, 5:54 AMOnGlobalLayoutListener
is also called after layout phase instead of draw phase so If you are ok with OnGlobalLayoutListener
, Modifier.onGloballyPositioned
should be the same.Zach Klippenstein (he/him) [MOD]
10/27/2022, 2:52 PMLaunchedEffect
could work as well.