add button in flutter code example
Example 1: flutter raisedbutton example
RaisedButton(child: Text("Rock & Roll"),
onPressed: _changeText,
color: Colors.red,
textColor: Colors.yellow,
padding: EdgeInsets.fromLTRB(10, 10, 10, 10),
splashColor: Colors.grey,
)
Example 2: flutter button
FlatButton(
color: Colors.red,
splashColor: Colors.black12,
onPressed: (){
},
child: Text(
"Nouvelle Texte"
),
),