added teacher-focused lesson sheet with direct class and teacher timetable links

This commit is contained in:
2026-09-24 23:33:13 +02:00
parent de866b12b4
commit e21560ed3d
14 changed files with 306 additions and 33 deletions
+4
View File
@@ -10,12 +10,16 @@ class ModulesSettings {
List<Modules> hiddenModules;
bool autoFillBottomBar;
int fixedBottomBarSlots;
// Set once the teacher module defaults were applied, so a module the teacher
// re-enables afterwards stays visible.
bool teacherDefaultsApplied;
ModulesSettings({
required this.moduleOrder,
required this.hiddenModules,
this.autoFillBottomBar = true,
this.fixedBottomBarSlots = 3,
this.teacherDefaultsApplied = false,
});
factory ModulesSettings.fromJson(Map<String, dynamic> json) =>
+2
View File
@@ -16,6 +16,7 @@ ModulesSettings _$ModulesSettingsFromJson(Map<String, dynamic> json) =>
.toList(),
autoFillBottomBar: json['autoFillBottomBar'] as bool? ?? true,
fixedBottomBarSlots: (json['fixedBottomBarSlots'] as num?)?.toInt() ?? 3,
teacherDefaultsApplied: json['teacherDefaultsApplied'] as bool? ?? false,
);
Map<String, dynamic> _$ModulesSettingsToJson(
@@ -27,6 +28,7 @@ Map<String, dynamic> _$ModulesSettingsToJson(
.toList(),
'autoFillBottomBar': instance.autoFillBottomBar,
'fixedBottomBarSlots': instance.fixedBottomBarSlots,
'teacherDefaultsApplied': instance.teacherDefaultsApplied,
};
const _$ModulesEnumMap = {