I was looking through some Compose widgets, and co...
# compose
a
I was looking through some Compose widgets, and couldn't find where they are literally drawing their contents, is there a good example some where? Does it boil down to a canvas object at some point?
f
yes, compose draws straight to Canvas using Skia
k
Yes, go down the source code and you'll eventually get to Canvas composables
a
great, thanks
c
s
Modifier.drawBehind etc is the most typical in-app usage
Anyway, you won't find anything related to Skia or (platform) Canvas in any of the common directories. To find it you'll need too look in Foo.android.kt files
k
The Canvas composables will be in the common directories though
a
awesome, thanks for the info! I feel much more comfortable with things when I see how they work all the way down to the pixels 😛
c
write up a blog post. id read about it. 😄
😇 1
118 Views