If I'd like to draw an inner (inset) shadow, what are my options? Not supported by the framework, but can I do it by hand maybe?
c
Chris Sinco [G]
11/22/2021, 11:33 PM
Shadow modifier likely won't work so maybe with the previous Android Canvas? Or a border modifier with a gradient brush. @Nader Jawad might have better ideas.
n
Nader Jawad
11/22/2021, 11:43 PM
Depending on the shape you could probably recreate it using a gradient and using
Modifier.drawBehind
to draw the inset shadow underneath the content
d
dimsuz
11/23/2021, 10:36 AM
Nice, thanks for the tips, will play with gradients/drawBehind
I wanted to try and do something like this (notice inner shadows)