RaisedButton( onPressed: () {}, child: Text( 'Label Here', style: TextStyle(color: Colors.black), ), color: Colors.transparent, shape: RoundedRectangleBorder( side: BorderSide(color: Colors.blue) ), ),
Flutter 给raisedButton添加边框
Flutter raisedButton 并没有border属性,只能借助shape的RoundedRecangleBorder来进行添加,代码如下: