Finished All instruction page
This commit is contained in:
parent
19bc473af5
commit
fe603a65a5
1 changed files with 48 additions and 18 deletions
|
@ -27,6 +27,16 @@ class _AllInstructionPageState extends State<AllInstructionPage> {
|
||||||
color: Colors.green,
|
color: Colors.green,
|
||||||
fontSize: 20
|
fontSize: 20
|
||||||
);
|
);
|
||||||
|
static const daysOfTheWeek = [
|
||||||
|
"Sunday",
|
||||||
|
"Monday",
|
||||||
|
"Tuesday",
|
||||||
|
"Wednesday",
|
||||||
|
"Thursday",
|
||||||
|
"Friday",
|
||||||
|
"Saturday"
|
||||||
|
];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context){
|
Widget build(BuildContext context){
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
@ -42,24 +52,44 @@ class _AllInstructionPageState extends State<AllInstructionPage> {
|
||||||
child:Column(
|
child:Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text("Modulus (Mod) is the remainder after dividing", style: textStyle),
|
Text("To calculate the weekday", style: textStyle),
|
||||||
Row(
|
Text("Add all the values together:", style: textStyle),
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
Text("Day of the Month", style: textStyle),
|
||||||
children: <Widget>[
|
Text("+", style: TextStyle(fontSize: 15)),
|
||||||
Text("value.toString()", style: valueStyle),
|
Text("Month Value", style: textStyle),
|
||||||
Text(" divided by 7 is " + "div.toString()", style: textStyle),
|
Text("+", style: TextStyle(fontSize: 15)),
|
||||||
],
|
Text("Year Value", style: textStyle),
|
||||||
),
|
Text("+", style: TextStyle(fontSize: 15)),
|
||||||
Text("But that leaves " + "remainder.toString()" + " left over", style: textStyle),
|
Text("Century Value", style: textStyle),
|
||||||
Row(
|
Text("-", style: TextStyle(fontSize: 15)),
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
Text("Leap Value (1 or 0)", style: textStyle),
|
||||||
children: <Widget>[
|
Text("(if in January/February)", style: TextStyle(fontSize: 15)),
|
||||||
Text("So the result of ", style: textStyle),
|
Text("", style: TextStyle(fontSize: 15)),
|
||||||
Text("value.toString()", style: valueStyle),
|
Text("Mod the result by 7", style: textStyle),
|
||||||
Text(" mod 7 is ", style: textStyle),
|
Text("", style: TextStyle(fontSize: 15)),
|
||||||
Text("remainder.toString()", style: textStyleU),
|
Text("And check what day it is:", style: textStyle),
|
||||||
],
|
Table(
|
||||||
),
|
children: List.generate(daysOfTheWeek.length, (i) =>
|
||||||
|
TableRow(
|
||||||
|
children: <Widget> [
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
daysOfTheWeek[i],
|
||||||
|
textAlign: TextAlign.right,
|
||||||
|
style: TextStyle(fontSize: 20)
|
||||||
|
)
|
||||||
|
),
|
||||||
|
TableCell(
|
||||||
|
child: Text(
|
||||||
|
i.toString(),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(fontSize: 20)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Reference in a new issue