Files
pipelines/app/lib/features/settings/settings_schedules_section.dart
T
alan 1e07ab1ddc Remove Templates from Settings
Keep the Templates destination available through its direct routes while removing the obsolete Settings entry and wiring. Update navigation coverage and document the preserved route behavior.
2026-11-12 01:02:11 +00:00

30 lines
922 B
Dart

import 'package:flutter/material.dart';
import 'settings_keys.dart';
import 'settings_row.dart';
/// The Settings entry to the saved-schedule list.
///
/// The row only opens the route; the list's own controller performs the single
/// `list_schedules` read.
const String settingsSchedulesLabel = 'Browse schedules';
const String settingsSchedulesSecondary =
'Saved run configurations for every pipeline.';
/// A navigation row (chevron) for a Settings group.
class SettingsSchedulesSection extends StatelessWidget {
const SettingsSchedulesSection({super.key, required this.onOpen});
final VoidCallback onOpen;
@override
Widget build(BuildContext context) => SettingsRow(
key: SettingsKeys.schedules,
leading: const Icon(Icons.event_repeat_outlined),
title: const Text(settingsSchedulesLabel),
subtitle: const Text(settingsSchedulesSecondary),
chevron: true,
onTap: onOpen,
);
}