feat(app): register the saved-schedule list under Settings at /schedules

This commit is contained in:
2026-10-22 10:16:45 +01:00
parent dc9faeb018
commit 2139e21041
9 changed files with 233 additions and 3 deletions
@@ -10,6 +10,7 @@ import 'settings_controller.dart';
import 'settings_controls.dart';
import 'settings_layout.dart';
import 'settings_notifications_section.dart';
import 'settings_schedules_section.dart';
import 'settings_sections.dart';
import 'settings_store.dart';
import 'settings_templates_section.dart';
@@ -31,6 +32,7 @@ class SettingsScreen extends StatefulWidget {
this.ping,
this.embedded = false,
this.onOpenTemplates,
this.onOpenSchedules,
this.notifications,
});
@@ -53,6 +55,9 @@ class SettingsScreen extends StatefulWidget {
/// without a dead row that would go nowhere.
final VoidCallback? onOpenTemplates;
/// Opens the saved-schedule list above Settings.
final VoidCallback? onOpenSchedules;
/// The app-level notification capability; absent in connection-only fixtures.
final NotificationController? notifications;
@@ -141,6 +146,12 @@ class _SettingsScreenState extends State<SettingsScreen> {
controller: widget.notifications!,
),
],
if (widget.onOpenSchedules != null) ...<Widget>[
const SizedBox(height: settingsSectionGap),
const _SectionTitle('Schedules'),
const SizedBox(height: settingsTitleGap),
SettingsSchedulesSection(onOpen: widget.onOpenSchedules!),
],
if (widget.onOpenTemplates != null) ...<Widget>[
const SizedBox(height: settingsSectionGap),
const _SectionTitle('Templates'),