Added styling to 'finished practice' dialog title

This commit is contained in:
BroodjeAap 2020-12-05 17:05:24 +01:00
parent bc778ba1a5
commit ff95e415d2
2 changed files with 47 additions and 1 deletions

View file

@ -112,7 +112,10 @@ class _PracticeState extends State<PracticePage> {
SimpleDialog finishedPracticeDialog() {
return SimpleDialog(
title: Text("Practice Complete!"),
title: Text(
"Practice Complete!",
style: TextStyle(fontSize: 25, color: Colors.blue)
),
contentPadding: EdgeInsets.all(50),
children: <Widget>[
Row(

View file

@ -0,0 +1,43 @@
import 'package:flutter/material.dart';
import 'package:ohthatsa/util/Months.dart';
TableRow getMonthTableRow(MapEntry<String, Month> month) {
return TableRow(
children: [
TableCell(
child: Text(
month.key,
style: TextStyle(fontSize: 25),
textAlign: TextAlign.right
)
),
TableCell(
child: Text(
month.value.value.toString(),
style: TextStyle(fontSize: 25),
textAlign: TextAlign.center
)
)
]
);
}
SimpleDialog getMonthInstructionDialog(){
return SimpleDialog(
title: Text(
"Month Instructions",
style: TextStyle(fontSize: 25, color: Colors.blue),
),
children: <Widget>[
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text("Memorize these values for every month"),
Table(
children: Months.stringMap.entries.map(getMonthTableRow).toList()
)
]
)
],
);
}