RaisedButton( onPressed: () {}, child: Text( 'Label Here', style: TextStyle(color: Colors.black), ), color: Colors.transparent, shape: RoundedRectangleBorder( side: BorderSide(color: Colors.blue) ), ),
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!
RaisedButton( onPressed: () {}, child: Text( 'Label Here', style: TextStyle(color: Colors.black), ), color: Colors.transparent, shape: RoundedRectangleBorder( side: BorderSide(color: Colors.blue) ), ),
Flutter RaisedButton可以设置圆角和边框,都在shape中设置,边框和Container等常规的边框设置略有差异: