Is there anyway to Stroke and Fill a path at the s...
# compose
r
Is there anyway to Stroke and Fill a path at the same time using jetpack compose. from the source codes I can only see
Fill
and
Stroke
but i need something like
StrokeAndFill
a
@Nader Jawad
in the meantime you can first draw with Fill and then with Stroke to achieve it
n
Yes this currently requires 2 draw calls. There is a ticker filed internally to add fill and stroke capabilities
The other alternative is to use
drawIntoCanvas
and manage your own
Paint
object to draw with the provided canvas
r
Thank you