fancy bar chart thing on absences page

This commit is contained in:
Kima
2024-04-23 18:48:45 +02:00
parent 73db67c4e3
commit 1388ba58c1
3 changed files with 139 additions and 33 deletions

View File

@@ -1,3 +1,5 @@
import "package:flutter/material.dart";
import "category.dart";
import "subject.dart";
import "teacher.dart";
@@ -96,3 +98,15 @@ class Absence {
}
enum Justification { excused, unexcused, pending }
class AbsenceChartData {
double start;
double end;
Color color;
AbsenceChartData({
required this.start,
required this.end,
this.color = Colors.transparent,
});
}