In flutter App I'm trying to set color for the FlatButton But it's not working. find the source code below.
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: SafeArea(
child: Scaffold(
body: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
FlatButton(
color: Colors.red,
),
FlatButton(
color: Colors.green,
),
FlatButton(
color: Colors.blue,
),
],
),
),
));
}
}
Output:
I'm flutter Beginner, Any Idea What is the issue in my code?
Thanks In Advance

