How to create button without rounded corners (can ...
# compose
l
How to create button without rounded corners (can it be done without specifying border with 0.dp width)?
p
The
shape
parameter of an element (in this case
Button
) is responsible for changing the border radius or general shape of the element. By default a button uses the
MaterialTheme.shapes.small
Shape that can be changed via your Theme if you wish to remove rounded corners for all small components - alternatively you can just change the shape of this one button via:
Button(... ,shape = RectangleShape)
👍 2
l
Thank you.