diff --git a/lib/main.dart b/lib/main.dart index 6b4739bc..97b49582 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -50,9 +50,11 @@ class _QuizPageState extends State { Expanded( child: Padding( padding: EdgeInsets.all(15.0), - child: FlatButton( - textColor: Colors.white, - color: Colors.green, + child: TextButton( + style: TextButton.styleFrom( + onSurface: Colors.white, + backgroundColor: Colors.green, + ), child: Text( 'True', style: TextStyle( @@ -69,8 +71,11 @@ class _QuizPageState extends State { Expanded( child: Padding( padding: EdgeInsets.all(15.0), - child: FlatButton( - color: Colors.red, + child: TextButton( + style: TextButton.styleFrom( + onSurface: Colors.white, + backgroundColor: Colors.red, + ), child: Text( 'False', style: TextStyle(