Flutter 編寫一個左邊圓形右邊矩形的shape樣式
這裏使用到了ClipRRect的組件
ClipRRect(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(100),
bottomLeft: Radius.circular(100)),
clipBehavior: Clip.hardEdge,
child: RaisedButton(
onPressed: () {
Scaffold.of(context).showSnackBar(SnackBar(
content: Text("adsasd"),
));
},
child: Text("這是內容"),
),
效果圖