似乎没有一个颤动按钮提供了一种更改按钮矩形的边角半径的方法。有一个形状属性,但我不知道如何使用它。
发布于 2018-10-17 07:47:26
您可以从shape
属性更改半径,并给它一个RoundedRectangleBorder
,在这里您可以使用边界半径。
在下面的示例中,您将仅在topRight
、topLeft
和bottomRight
中获得圆角:
RaisedButton(
onPressed: () {},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topRight: Radius.circular(25.0),
topLeft: Radius.circular(25.0),
bottomRight: Radius.circular(25.0),
),
),
),
https://stackoverflow.com/questions/52845036
复制相似问题