myanmarking
02/02/2022, 5:43 PMfun Modifier.stride(
color: Color,
width: Dp = 4.dp
): Modifier {
return this.then(
composed {
val strideWidth = with(LocalDensity.current) {
width.toPx()
}
drawBehind {
drawRoundRect(
color = color,
size = Size(
width = strideWidth,
height = this.size.height
)
)
}
}
).then(Modifier.padding(start = width))
}