From 70eb31c7c944e17caa3443ef39ef7cfe2664b130 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Wed, 30 Dec 2020 14:59:58 +0100 Subject: [PATCH] fixed leap year buttons --- lib/pages/practice/thing/PracticeThingLeap.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/pages/practice/thing/PracticeThingLeap.dart b/lib/pages/practice/thing/PracticeThingLeap.dart index d194269..bd5a38f 100644 --- a/lib/pages/practice/thing/PracticeThingLeap.dart +++ b/lib/pages/practice/thing/PracticeThingLeap.dart @@ -89,11 +89,14 @@ class PracticeThingLeap extends PracticeThing { } Widget getButtons(){ - return Container( + return GridView.count( + primary: false, + crossAxisCount: 2, padding: EdgeInsets.fromLTRB(0, 20, 0, 20), - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ + mainAxisSpacing: 10, + crossAxisSpacing: 10, + shrinkWrap: true, + children: [ FlatButton( onPressed: () { practicePageState.checkAnswer(0); @@ -117,7 +120,6 @@ class PracticeThingLeap extends PracticeThing { ) ) ] - ) ); } } \ No newline at end of file