From 8bb558e3f465a0d06c338c54152610960e9c97a1 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Mon, 19 Oct 2020 17:28:35 +0200 Subject: [PATCH] improved layout of month practice setup page a bit --- .../month/MonthPracticeSetupPage.dart | 54 ++++++++++--------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/lib/pages/practice/month/MonthPracticeSetupPage.dart b/lib/pages/practice/month/MonthPracticeSetupPage.dart index 3fcd567..191d841 100644 --- a/lib/pages/practice/month/MonthPracticeSetupPage.dart +++ b/lib/pages/practice/month/MonthPracticeSetupPage.dart @@ -18,30 +18,36 @@ class _MonthPracticeSetupState extends State { title: Text("Practice Months"), ), body: Center( - child: new Column( - children: [ - new Text("How many times would you like to practice?"), - new NumberPicker.integer( - initialValue: _count, - minValue: 1, - maxValue: 1000000, - onChanged: (newNumber) => - setState(() => _count = newNumber), - ), - new FlatButton( - onPressed: () { - Navigator.pushNamed( - context, - '/practice/month/practice', - arguments: MonthPracticeSetup(_count) - ); - }, - child: new Text("Start!"), - color: Colors.blue, - textColor: Colors.white, - padding: EdgeInsets.all(8.0) - ) - ] + child: new Container( + padding: EdgeInsets.all(20), + child: new Column( + children: [ + new Text( + "How many rounds?", + style: TextStyle(fontSize: 30), + ), + new NumberPicker.integer( + initialValue: _count, + minValue: 1, + maxValue: 1000000, + onChanged: (newNumber) => + setState(() => _count = newNumber), + ), + new FlatButton( + onPressed: () { + Navigator.pushNamed( + context, + '/practice/month/practice', + arguments: MonthPracticeSetup(_count) + ); + }, + child: new Text("Start!"), + color: Colors.blue, + textColor: Colors.white, + padding: EdgeInsets.all(8.0) + ) + ] + ) ) ) );