Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaced deprecated flat buttons with text buttons #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,40 +50,41 @@ class _QuizPageState extends State<QuizPage> {
Expanded(
child: Padding(
padding: EdgeInsets.all(15.0),
child: FlatButton(
textColor: Colors.white,
color: Colors.green,
child: TextButton(
style: TextButton.styleFrom(
backgroundColor: Colors.green,
),
onPressed: (){},
child: Text(
'True',
style: TextStyle(
color: Colors.white,
fontSize: 20.0,
),
) ,
),
),
onPressed: () {
//The user picked true.
},
),
),
),
Expanded(
child: Padding(
padding: EdgeInsets.all(15.0),
child: FlatButton(
color: Colors.red,
child:TextButton(
style: TextButton.styleFrom(
backgroundColor:Colors.red,
),
onPressed: (){},
child: Text(
'False',
style: TextStyle(
fontSize: 20.0,
color: Colors.white,
),
fontSize: 20.0,
) ,
),
),
onPressed: () {
//The user picked false.
},

),
),
),
//TODO: Add a Row here as your score keeper
],
);
Expand Down