From 5942ec9a73d07e640ea10f9b6e4f88940b43b1f6 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Mon, 21 Dec 2020 16:32:49 +0100 Subject: [PATCH] added century instructions page --- lib/main.dart | 3 +- .../instructions/CenturyInstructionPage.dart | 152 ++++++++++++++++++ 2 files changed, 154 insertions(+), 1 deletion(-) create mode 100644 lib/pages/practice/instructions/CenturyInstructionPage.dart diff --git a/lib/main.dart b/lib/main.dart index d740656..a76343f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -9,6 +9,7 @@ import 'package:ohthatsa/pages/MonthValuesPage.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; import 'package:ohthatsa/pages/practice/instructions/MonthInstructionPage.dart'; import 'package:ohthatsa/pages/practice/instructions/YearInstructionPage.dart'; +import 'package:ohthatsa/pages/practice/instructions/CenturyInstructionPage.dart'; import 'package:rxdart/subjects.dart'; import 'package:flutter/services.dart'; @@ -136,7 +137,7 @@ class RouteGenerator { return MaterialPageRoute(builder: (context) => YearInstructionPage()); } case "/instructions/century": { - return MaterialPageRoute(builder: (context) => YearInstructionPage()); + return MaterialPageRoute(builder: (context) => CenturyInstructionPage()); } case "/instructions/leap": { return MaterialPageRoute(builder: (context) => YearInstructionPage()); diff --git a/lib/pages/practice/instructions/CenturyInstructionPage.dart b/lib/pages/practice/instructions/CenturyInstructionPage.dart new file mode 100644 index 0000000..324aafe --- /dev/null +++ b/lib/pages/practice/instructions/CenturyInstructionPage.dart @@ -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: [ + Text("Memorize these values:", style: TextStyle(fontSize: 25, color: Colors.blue)), + Table( + children: [ + TableRow( + children: [ + 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: [ + 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: [ + 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: [ + 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: [ + 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: [ + 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: [ + TableCell( + child: Text( + "2300-2399", + style: TextStyle(fontSize: 25), + textAlign: TextAlign.right + ) + ), + TableCell( + child: Text( + "0", + style: TextStyle(fontSize: 25), + textAlign: TextAlign.center + ) + ) + ] + ) + ] + ) + ] + ) + ); + } +} \ No newline at end of file