How to create button without rounded corners (can it be done without specifying border with 0.dp width)?
p
patrick
09/22/2021, 12:25 PM
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: