improved layout of month practice setup page a bit

This commit is contained in:
BroodjeAap 2020-10-19 17:28:35 +02:00
parent 8e64a87631
commit 8bb558e3f4

View file

@ -18,30 +18,36 @@ class _MonthPracticeSetupState extends State<MonthPracticeSetupPage> {
title: Text("Practice Months"), title: Text("Practice Months"),
), ),
body: Center( body: Center(
child: new Column( child: new Container(
children: <Widget>[ padding: EdgeInsets.all(20),
new Text("How many times would you like to practice?"), child: new Column(
new NumberPicker.integer( children: <Widget>[
initialValue: _count, new Text(
minValue: 1, "How many rounds?",
maxValue: 1000000, style: TextStyle(fontSize: 30),
onChanged: (newNumber) => ),
setState(() => _count = newNumber), new NumberPicker.integer(
), initialValue: _count,
new FlatButton( minValue: 1,
onPressed: () { maxValue: 1000000,
Navigator.pushNamed( onChanged: (newNumber) =>
context, setState(() => _count = newNumber),
'/practice/month/practice', ),
arguments: MonthPracticeSetup(_count) new FlatButton(
); onPressed: () {
}, Navigator.pushNamed(
child: new Text("Start!"), context,
color: Colors.blue, '/practice/month/practice',
textColor: Colors.white, arguments: MonthPracticeSetup(_count)
padding: EdgeInsets.all(8.0) );
) },
] child: new Text("Start!"),
color: Colors.blue,
textColor: Colors.white,
padding: EdgeInsets.all(8.0)
)
]
)
) )
) )
); );