Luis Daivid
08/14/2021, 10:50 AMColton Idle
08/14/2021, 5:26 PM@Composable
private fun DashedLine() {
Canvas(modifier = Modifier.fillMaxWidth()) {
drawLine(
color = Color(0xff212121),
start = Offset(0f, 0f),
end = Offset(size.width - 1, 0f),
strokeWidth = 6f,
pathEffect = PathEffect.dashPathEffect(floatArrayOf(10f, 10f), 0f),
)
}
}
and then just have a
Row {
DashedLine
Text
DashedLine
}
and apply a weight modifier to the dashed lines of 1f