Crossed out timetable objects when no teacher is assigned
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:syncfusion_flutter_calendar/calendar.dart';
|
||||
|
||||
import '../../../api/webuntis/queries/getTimetable/getTimetableResponse.dart';
|
||||
import 'CrossPainter.dart';
|
||||
|
||||
class AppointmentComponent extends StatefulWidget {
|
||||
@ -117,7 +116,7 @@ class _AppointmentComponentState extends State<AppointmentComponent> {
|
||||
],
|
||||
),
|
||||
Visibility(
|
||||
visible: (meeting.id as GetTimetableResponseObject).code == "cancelled",
|
||||
visible: widget.crossedOut,
|
||||
child: Positioned.fill(
|
||||
child: CustomPaint(
|
||||
painter: CrossPainter(),
|
||||
|
Reference in New Issue
Block a user