Rafs
11/20/2020, 12:17 PMdrawText
method in the DrawScope
jim
11/20/2020, 12:30 PMNader Jawad
11/20/2020, 4:07 PMAdam Powell
01/05/2021, 3:42 PMDominaezzz
01/05/2021, 3:44 PMDominaezzz
01/05/2021, 3:44 PMDominaezzz
01/05/2021, 3:45 PMCanvas
.Zach Klippenstein (he/him) [MOD]
01/05/2021, 5:19 PMdrawWithContent
modifier (or whatever replaced it since it’s deprecated).Dominaezzz
01/05/2021, 6:57 PMCanvas {
drawWithContent { .... }
}
Dominaezzz
01/05/2021, 6:58 PMModifier
lol, I misread.Zach Klippenstein (he/him) [MOD]
01/05/2021, 8:07 PMText(Modifier.drawWithContent {
withRotate(…) {
withScale(…) {
// Actually draws the modified composable.
drawContent()
}
}
})
Dominaezzz
01/05/2021, 8:52 PMDominaezzz
01/05/2021, 8:54 PMModifer
I think. (Since you can't have multiple components in the canvas)Zach Klippenstein (he/him) [MOD]
01/05/2021, 9:57 PMZach Klippenstein (he/him) [MOD]
01/05/2021, 9:59 PMSubcomposeLayout
– layout all your non-canvas children first, place them, then subcompose your “canvas” composable underneath them all, passing their locations. Similar to how SimpleTableLayout
works here: https://github.com/zach-klippenstein/compose-richtext/blob/main/richtext-ui/src/main/java/com/zachklipp/richtext/ui/SimpleTableLayout.ktAdam Powell
01/06/2021, 12:48 AMZach Klippenstein (he/him) [MOD]
01/06/2021, 2:02 AM