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++;
});
},
)
网友评论