flutter button example
Example 1: flutter button
FlatButton(
color: Colors.red,
splashColor: Colors.black12,
onPressed: (){
},
child: Text(
"Nouvelle Texte"
),
),
Example 2: buttonbar flutter example
ButtonBar(
children: <Widget>[
FlatButton(
child: Text('Ok'),
color: Colors.blue,
onPressed: () {/** */},
),
FlatButton(
child: Text('Cancel'),
color: Colors.blue,
onPressed: () {/** */},
),
],
)
Example 3: buttons in flutter
TextButton(
onPressed: (){
},
child: Text(
"Nouvelle Texte"
),
),
Example 4: flatbutton flutter
FlatButton(
onPressed: () {
/*...*/
},
child: Text(
"Flat Button",
),
)