feat(reports): add inactive card, update student status breakdown donut, and fix summary banner width

This commit is contained in:
ssbg04 committed 2026-08-18 21:00:19 +08:00
1 parent 2e370a5faf
commit 8aaefb2aa4
3 files changed
+52 -12

No files matched your search

@@ -20,6 +20,7 @@ class AcademicYear {
/// KPI summary numbers for the Reports screen.
class StudentCounts {
final int active;
final int inactive;
final int dropped;
final int transferee;
final int graduated;
@@ -27,6 +28,7 @@ class StudentCounts {
const StudentCounts({
required this.active,
this.inactive = 0,
required this.dropped,
required this.transferee,
required this.graduated,
@@ -35,6 +37,7 @@ class StudentCounts {
factory StudentCounts.fromJson(Map<String, dynamic> j) => StudentCounts(
active: (j['active'] as num?)?.toInt() ?? 0,
inactive: (j['inactive'] as num?)?.toInt() ?? 0,
dropped: (j['dropped'] as num?)?.toInt() ?? 0,
transferee: (j['transferee'] as num?)?.toInt() ?? 0,
graduated: (j['graduated'] as num?)?.toInt() ?? 0,