new Material(
  borderRadius: BorderRadius.circular(20.0),
  shadowColor: Colors.blue.shade200,
  elevation: 5.0,
  child: new MaterialButton(
    onPressed: (){},
    minWidth: 160.0,
    color: Colors.blue,
    child:text('Buy Now',color: Colors.white),
  ),
)
效果如下:

flutter圆角效果的实现

borderRadius: BorderRadius.circular(20.0),

这段代表 圆角的程度。

child里面是需要被圆角处理的控件或对象。



相关文章:

  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2021-11-19
猜你喜欢
  • 2021-10-03
  • 2022-12-23
  • 2021-07-06
  • 2021-09-05
  • 2022-01-18
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案