kclerc
09/22/2020, 3:10 PMFill
OR Stroke
styles.
In DrawScope’s drawPath
method, documentation says :
Whether this shape is
* filled or stroked (or both) is controlled by [DrawStyle]
What is the appropriate way to do the “both” scenario ?
We could draw the path twice with two different DrawStyles but is there a cleaner solution to do that ?Andrey Kulikov
09/22/2020, 5:15 PMNader Jawad
09/22/2020, 5:49 PMPaint.Style.FILL_AND_STROKE
as we thought it might cause some confusion. You could either draw twice as you mentioned or use DrawScope.drawCanvas{ canvas -> /**/}
and get a handle to the android.graphics.Canvas via canvas.nativeCanvas
and draw yourself within the DrawScope instance.