Added styling to 'finished practice' dialog title
This commit is contained in:
parent
bc778ba1a5
commit
ff95e415d2
2 changed files with 47 additions and 1 deletions
|
@ -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(
|
||||
|
|
43
lib/pages/practice/instructions/YearInstructionDialog.dart
Normal file
43
lib/pages/practice/instructions/YearInstructionDialog.dart
Normal 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()
|
||||
)
|
||||
]
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
Loading…
Add table
Reference in a new issue