FlatButton is really easy to use.
Where ever you need it. Just add
FlatButton(
child: Text('FlatButton'),
color: Colors.white,
onPressed: () {
print("FlatButton tapped");
},
),
Full source code down below.
``` import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: FlatButton(
child: Text('FlatButton'),
color: Colors.white,
onPressed: () {
print("FlatButton tapped");
},
),
);
}
}