美文网首页
Flutter ElevatedButton使用

Flutter ElevatedButton使用

作者: 九月oc | 来源:发表于2021-07-02 16:09 被阅读0次

ElevatedButton (

child:Text("+", style:TextStyle(fontSize:20, color: Colors.white),),

style: ElevatedButton.styleFrom(

primary: Colors.pinkAccent,//change background color of button

    onPrimary: Colors.yellow,//change text color of button

    shape:RoundedRectangleBorder(

borderRadius:BorderRadius.circular(25),

),

elevation:15.0,

),

onPressed: () {

setState(() {

_counter++;

});

},

)

相关文章

网友评论

      本文标题:Flutter ElevatedButton使用

      本文链接:https://www.haomeiwen.com/subject/uptyultx.html