Flutter 编写一个左边圆形右边矩形的shape样式

【Flutter 编写一个左边圆形右边矩形的shape样式】
Flutter 编写一个左边圆形右边矩形的shape样式

  • 这里使用到了ClipRRect的组件

这里使用到了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("这是内容"), ),

效果图
Flutter 编写一个左边圆形右边矩形的shape样式
文章图片

    推荐阅读