RaisedButton(
child:Text(‘delete‘),
clipBehavior: Clip.antiAliasWithSaveLayer,
color: Colors.orangeAccent,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(28)),
onPressed: (){
_textEditingController.text = ‘‘;
_textEditingControllertwo.text = ‘‘;
setState(() {
});
}),
原文:https://www.cnblogs.com/braveheart007/p/11025972.html