Skip to content

Commit

Permalink
Merge pull request #144 from venkylm10/timetable
Browse files Browse the repository at this point in the history
fixed homescreen TT and navigation between TT and exam schedule
  • Loading branch information
Hareesh-Nandigrama authored Oct 11, 2023
2 parents 12abe02 + ec5a8b4 commit b7f9f47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions lib/pages/timetable/timetable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class _TimeTableTabState extends State<TimeTableTab> {
Expanded(
child: TextButton(
onPressed: () {
(store.setTT());
if (!(store.isTimetable)) {
store.setTT();
}
},
child: ClipRRect(
borderRadius: const BorderRadius.all(
Expand All @@ -59,7 +61,9 @@ class _TimeTableTabState extends State<TimeTableTab> {
Expanded(
child: TextButton(
onPressed: () {
(store.setTT());
if (store.isTimetable) {
store.setTT();
}
},
child: ClipRRect(
borderRadius: const BorderRadius.all(
Expand Down
4 changes: 2 additions & 2 deletions lib/stores/timetable_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ abstract class _TimetableStore with Store {
...allTimetableCourses[current.weekday - 1]
.morning
.where((e) =>
dateFormat.parse(e.timings![kworkingDays[selectedDay]]).hour >=
dateFormat.parse(e.timings![day]).hour >=
DateTime.now().hour)
.toList()
.map((e) => TimetableTile(
Expand All @@ -135,7 +135,7 @@ abstract class _TimetableStore with Store {
...allTimetableCourses[current.weekday - 1]
.afternoon
.where((e) =>
dateFormat.parse(e.timings![kworkingDays[selectedDay]]).hour >=
dateFormat.parse(e.timings![day]).hour >=
DateTime.now().hour)
.toList()
.map((e) => TimetableTile(
Expand Down

0 comments on commit b7f9f47

Please sign in to comment.