Change timetable view from Dayview to Weekview

Added current day and time hint
This commit is contained in:
2023-02-22 00:48:50 +01:00
parent 88e5a605fb
commit 7a3744a70a
5 changed files with 230 additions and 165 deletions

View File

@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:marianum_mobile/data/timetable/timetableProps.dart';
import 'package:marianum_mobile/screen/pages/timetable/dayListView.dart';
import 'package:marianum_mobile/screen/pages/timetable/weekView.dart';
import 'package:provider/provider.dart';
@ -34,7 +34,7 @@ class _TimetableState extends State<Timetable> {
return Column(
children: [
Flexible(
child: DayListView(value),
child: WeekView(value),
),
Container(
@ -49,7 +49,7 @@ class _TimetableState extends State<Timetable> {
children: [
IconButton(
onPressed: () => timetable.next(previous: true),
onPressed: () => timetable.switchWeek(previous: true),
icon: const Icon(Icons.navigate_before_sharp),
color: Theme.of(context).primaryColor,
iconSize: 30,
@ -65,7 +65,7 @@ class _TimetableState extends State<Timetable> {
],
),
IconButton(
onPressed: () => timetable.next(),
onPressed: () => timetable.switchWeek(),
icon: const Icon(Icons.navigate_next_sharp),
color: Theme.of(context).primaryColor,
iconSize: 30,