flutter create button widget code example
Example 1: flutter button
FlatButton(
color: Colors.red,
splashColor: Colors.black12,
onPressed: (){
},
child: Text(
"Nouvelle Texte"
),
),
Example 2: make stateful widget flutter
class MyClass extends StatefulWidget {
MyClassState createState() => new MyClassState();
}
class MyClassState extends State<MyClass> {
//Widgets and other code here
}