Fixed some coloring issues, respect color theme on file-viewer background, make file-viewer images rotatable
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:syncfusion_flutter_calendar/calendar.dart';
|
||||
@ -55,10 +53,10 @@ class _TimetableState extends State<Timetable> {
|
||||
title: const Text("Stunden & Vertretungsplan"),
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.home_outlined),
|
||||
onPressed: () {
|
||||
controller.displayDate = DateTime.now().add(const Duration(days: 2));
|
||||
}
|
||||
icon: const Icon(Icons.home_outlined),
|
||||
onPressed: () {
|
||||
controller.displayDate = DateTime.now().add(const Duration(days: 2));
|
||||
}
|
||||
),
|
||||
],
|
||||
),
|
||||
@ -102,7 +100,6 @@ class _TimetableState extends State<Timetable> {
|
||||
controller: controller,
|
||||
|
||||
onViewChanged: (ViewChangedDetails details) {
|
||||
log(details.visibleDates.toString());
|
||||
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
||||
Provider.of<TimetableProps>(context, listen: false).updateWeek(details.visibleDates.first, details.visibleDates.last);
|
||||
});
|
||||
@ -112,7 +109,6 @@ class _TimetableState extends State<Timetable> {
|
||||
if(calendarTapDetails.appointments == null) return;
|
||||
Appointment tapped = calendarTapDetails.appointments!.first;
|
||||
AppointmentDetails.show(context, value, tapped);
|
||||
log(tapped.id.toString());
|
||||
},
|
||||
|
||||
firstDayOfWeek: DateTime.monday,
|
||||
|
Reference in New Issue
Block a user