added century instructions page
This commit is contained in:
parent
4638bd334e
commit
5942ec9a73
2 changed files with 154 additions and 1 deletions
|
@ -9,6 +9,7 @@ import 'package:ohthatsa/pages/MonthValuesPage.dart';
|
||||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
||||||
import 'package:ohthatsa/pages/practice/instructions/MonthInstructionPage.dart';
|
import 'package:ohthatsa/pages/practice/instructions/MonthInstructionPage.dart';
|
||||||
import 'package:ohthatsa/pages/practice/instructions/YearInstructionPage.dart';
|
import 'package:ohthatsa/pages/practice/instructions/YearInstructionPage.dart';
|
||||||
|
import 'package:ohthatsa/pages/practice/instructions/CenturyInstructionPage.dart';
|
||||||
import 'package:rxdart/subjects.dart';
|
import 'package:rxdart/subjects.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
|
@ -136,7 +137,7 @@ class RouteGenerator {
|
||||||
return MaterialPageRoute(builder: (context) => YearInstructionPage());
|
return MaterialPageRoute(builder: (context) => YearInstructionPage());
|
||||||
}
|
}
|
||||||
case "/instructions/century": {
|
case "/instructions/century": {
|
||||||
return MaterialPageRoute(builder: (context) => YearInstructionPage());
|
return MaterialPageRoute(builder: (context) => CenturyInstructionPage());
|
||||||
}
|
}
|
||||||
case "/instructions/leap": {
|
case "/instructions/leap": {
|
||||||
return MaterialPageRoute(builder: (context) => YearInstructionPage());
|
return MaterialPageRoute(builder: (context) => YearInstructionPage());
|
||||||
|
|
152
lib/pages/practice/instructions/CenturyInstructionPage.dart
Normal file
152
lib/pages/practice/instructions/CenturyInstructionPage.dart
Normal file
|
@ -0,0 +1,152 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:ohthatsa/other/AppDrawer.dart';
|
||||||
|
import 'package:ohthatsa/util/Months.dart';
|
||||||
|
|
||||||
|
class CenturyInstructionPage extends StatelessWidget{
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context){
|
||||||
|
return Scaffold(
|
||||||
|
drawer: AppDrawer(),
|
||||||
|
appBar: AppBar(
|
||||||
|
title: Text("Year Instructions")
|
||||||
|
),
|
||||||
|
body: Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: <Widget>[
|
||||||
|
Text("Memorize these values:", style: TextStyle(fontSize: 25, color: Colors.blue)),
|
||||||
|
Table(
|
||||||
|
children: <TableRow>[
|
||||||
|
TableRow(
|
||||||
|
children: <Widget>[
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"1700-1799",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.right
|
||||||
|
)
|
||||||
|
),
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"4",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.center
|
||||||
|
)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
TableRow(
|
||||||
|
children: <Widget>[
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"1800-1899",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.right
|
||||||
|
)
|
||||||
|
),
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"2",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.center
|
||||||
|
)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
TableRow(
|
||||||
|
children: <Widget>[
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"1900-1999",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.right
|
||||||
|
)
|
||||||
|
),
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"0",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.center
|
||||||
|
)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
TableRow(
|
||||||
|
children: <Widget>[
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"2000-2099",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.right
|
||||||
|
)
|
||||||
|
),
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"6",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.center
|
||||||
|
)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
TableRow(
|
||||||
|
children: <Widget>[
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"2100-2199",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.right
|
||||||
|
)
|
||||||
|
),
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"4",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.center
|
||||||
|
)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
TableRow(
|
||||||
|
children: <Widget>[
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"2200-2299",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.right
|
||||||
|
)
|
||||||
|
),
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"2",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.center
|
||||||
|
)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
TableRow(
|
||||||
|
children: <Widget>[
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"2300-2399",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.right
|
||||||
|
)
|
||||||
|
),
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
"0",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
textAlign: TextAlign.center
|
||||||
|
)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue