kotlinforandroid
01/02/2024, 4:02 PMCanvas
. However, there do not seem to exist methods to draw other @Composable
components into the Canvas. Is this somehow possible? What approaches can I take?
The only one I came up with was using Box
and zIndex
to draw the Canvas in the background and draw the nodes on top of it. I was hoping for a "cleaner" solution.Sebastian Schuberth
01/02/2024, 4:15 PMephemient
01/02/2024, 4:17 PMelectrolobzik
01/02/2024, 4:21 PMkotlinforandroid
01/02/2024, 4:49 PMephemient
01/02/2024, 4:55 PMThehttps://github.com/androidx/androidx/blob/androidx-main/compose/foundation/foundat[…]ion/src/commonMain/kotlin/androidx/compose/foundation/Canvas.ktcomposable is a convenient wrapper aroundCanvas
.Modifier.drawBehind
ephemient
01/02/2024, 4:56 PM