button in flutter example
Example 1: flutter button
FlatButton(
color: Colors.red,
splashColor: Colors.black12,
onPressed: (){
},
child: Text(
"Nouvelle Texte"
),
),
Example 2: buttons in flutter
TextButton(
onPressed: (){
},
child: Text(
"Nouvelle Texte"
),
),
Example 3: flatbutton flutter
FlatButton(
onPressed: () {
/*...*/
},
child: Text(
"Flat Button",
),
)