v79
09/10/2023, 8:34 PMOutlinedButton
given the following custom Button shape (which is a parallelogram):
@Composable
fun ParalleloButton(onClick: () -> Unit, content: @Composable RowScope.() -> Unit) {
val shape = ParallelogramShape
Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
Button(onClick = onClick, shape = shape, content = content)
}
}
I don't know if I should be doing something with border, or something with my custom path?v79
09/11/2023, 6:41 AMButton
was at the root of it all; must stop thinking in terms of inheritance. I swapped Button for OutlinedButton...