fixed leap year buttons

This commit is contained in:
BroodjeAap 2020-12-30 14:59:58 +01:00
parent 2a206c8960
commit 70eb31c7c9

View file

@ -89,11 +89,14 @@ class PracticeThingLeap extends PracticeThing {
} }
Widget getButtons(){ Widget getButtons(){
return Container( return GridView.count(
primary: false,
crossAxisCount: 2,
padding: EdgeInsets.fromLTRB(0, 20, 0, 20), padding: EdgeInsets.fromLTRB(0, 20, 0, 20),
child: Column( mainAxisSpacing: 10,
mainAxisAlignment: MainAxisAlignment.center, crossAxisSpacing: 10,
children: <Widget>[ shrinkWrap: true,
children: <Widget>[
FlatButton( FlatButton(
onPressed: () { onPressed: () {
practicePageState.checkAnswer(0); practicePageState.checkAnswer(0);
@ -117,7 +120,6 @@ class PracticeThingLeap extends PracticeThing {
) )
) )
] ]
)
); );
} }
} }