-
-
Save KatieBarnett/d8ce2c40a23f656f74c42971b058832f to your computer and use it in GitHub Desktop.
StrokeCap.Rounded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun SolidLineRoundedEnds(color: Color, modifier: Modifier = Modifier) { | |
Canvas(modifier) { | |
drawLine( | |
color = color, | |
start = Offset(0f, 0f), | |
end = Offset(size.width, 0f), | |
cap = StrokeCap.Round, | |
strokeWidth = LINE_WIDTH.toPx() | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment