merged develop

This commit is contained in:
2026-09-27 14:58:07 +02:00
188 changed files with 7474 additions and 2558 deletions
+12 -5
View File
@@ -54,6 +54,10 @@ class _TimetableState extends State<Timetable> {
if (guardDemoAction(context)) return;
final ref = await AppRoutes.openElementPicker(context);
if (!mounted || ref == null) return;
_openElement(ref);
}
void _openElement(TimetableElementRef ref) {
setState(() => _selected = ref);
}
@@ -190,6 +194,8 @@ class _TimetableState extends State<Timetable> {
state,
apt,
canEditSubjectColor: policy.canEditSubjectColors,
teacherPlan: policy.showClassInsteadOfTeacher,
onOpenElement: policy.canOpenForeign ? _openElement : null,
),
onCreateEvent: policy.canManageCustomEvents
? _onCreateEventAt
@@ -244,11 +250,12 @@ class _ViewingBanner extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final isFavorite = context
.watch<SettingsCubit>()
.val()
.timetableFavoritesSettings
.isFavorite(element.type, element.id);
final isFavorite = context.select(
(SettingsCubit c) => c.state.timetableFavoritesSettings.isFavorite(
element.type,
element.id,
),
);
final onColor = theme.colorScheme.onSecondaryContainer;
// Compact icon button: ~32px square, no extra padding, so the banner stays