forked from firka/firka
tt_mo: I hope I never have deal with this ever again.
This commit is contained in:
@@ -94,7 +94,7 @@ extension DateExtension on DateTime {
|
|||||||
case FormatMode.yyyymmddwedd:
|
case FormatMode.yyyymmddwedd:
|
||||||
return "${DateFormat('yyyy MMM. dd').format(weekStart).toLowerCase()}-${DateFormat('dd').format(weekEnd)}";
|
return "${DateFormat('yyyy MMM. dd').format(weekStart).toLowerCase()}-${DateFormat('dd').format(weekEnd)}";
|
||||||
case FormatMode.yyyymmmm:
|
case FormatMode.yyyymmmm:
|
||||||
return DateFormat('yyyy MMMM').format(weekStart);
|
return DateFormat('yyyy MMMM').format(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ class _HomeTimetableMonthlyScreen extends State<HomeTimetableMonthlyScreen> {
|
|||||||
borderRadius: BorderRadius.circular(6)),
|
borderRadius: BorderRadius.circular(6)),
|
||||||
)),
|
)),
|
||||||
SizedBox(height: 4),
|
SizedBox(height: 4),
|
||||||
Text(d.format(widget.data.l10n, FormatMode.dd),
|
Text(d.format(widget.data.l10n, FormatMode.d),
|
||||||
style: appStyle.fonts.B_14R.apply(
|
style: appStyle.fonts.B_14R.apply(
|
||||||
color: (d.weekday == DateTime.saturday ||
|
color: (d.weekday == DateTime.saturday ||
|
||||||
d.weekday == DateTime.sunday)
|
d.weekday == DateTime.sunday)
|
||||||
@@ -337,7 +337,7 @@ class _HomeTimetableMonthlyScreen extends State<HomeTimetableMonthlyScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
var newNow = now!.subtract(Duration(days: 30));
|
var newNow = DateTime(now!.year, now!.month - 1);
|
||||||
setState(() {
|
setState(() {
|
||||||
now = newNow;
|
now = newNow;
|
||||||
lessons = null;
|
lessons = null;
|
||||||
@@ -362,7 +362,7 @@ class _HomeTimetableMonthlyScreen extends State<HomeTimetableMonthlyScreen> {
|
|||||||
color: appStyle.colors.accent,
|
color: appStyle.colors.accent,
|
||||||
),
|
),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
var newNow = now!.add(Duration(days: 30));
|
var newNow = DateTime(now!.year, now!.month + 1);
|
||||||
setState(() {
|
setState(() {
|
||||||
now = newNow;
|
now = newNow;
|
||||||
lessons = null;
|
lessons = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user