3933ff980c
Keep the Material settings implementation while preserving public Cupertino parameters for later cleanup. Narrow settings tests to the Material-only behavior.
30 lines
956 B
Dart
30 lines
956 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, exactly like the Templates entry.
|
|
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,
|
|
);
|
|
}
|