Sometimes the developer will not fully follow material specs and create custom looking buttons.
mvivo@ faced it(his screenshot is in attachment: "I used a plain ButtonStyle because border in the other implementations cannot be null This is my button style = ButtonStyle( backgroundColor = MaterialTheme.colors().primary, contentColor = MaterialTheme.colors().onSurface, shape = RoundedCornerShape(16.dp), border = if (selected) Border(color = Color.White, width = 2.dp) else null ) Couldn't use ContainedButtonStyle because it has no border, couldn't use OutlinedButtonStyle because border cannot be null, and neither TextButtonStyle because of all the above"
Description
mvivo@ faced it(his screenshot is in attachment:
"I used a plain ButtonStyle because border in the other implementations cannot be null
This is my button
style = ButtonStyle(
backgroundColor = MaterialTheme.colors().primary,
contentColor = MaterialTheme.colors().onSurface,
shape = RoundedCornerShape(16.dp),
border = if (selected) Border(color = Color.White, width = 2.dp) else null
)
Couldn't use ContainedButtonStyle because it has no border, couldn't use OutlinedButtonStyle because border cannot be null, and neither TextButtonStyle because of all the above"