Restyle Settings as flat grouped list sections (F9) and scroll it behind the bar (F1)

Servers become rows with a selection mark, addresses as subtitles and a
Use/Edit/Remove menu plus an Add server row; the connection is a status row
with address and Reconnect/Disconnect rows; Templates and Schedules are
chevron rows in a Library group. Material groups are flat surfaceContainer
surfaces with primary titleSmall headers (no Cards); Cupertino uses
inset-grouped sections on the grouped background, switches for the ntfy
choices. The trust warning is a footer, helper copy is shortened, Save
workspace is a legible tonal/plain button, and the column starts at the
bar's inset (max 720) instead of being centred. The page pads by the top
media padding instead of a top SafeArea.
This commit is contained in:
2026-10-31 03:07:20 +00:00
parent ea0f22dfc7
commit 3ec580c2d9
23 changed files with 1103 additions and 677 deletions
@@ -1,7 +1,9 @@
import 'package:flutter/widgets.dart';
import '../attention/notify/notification_controller.dart';
import '../attention/notify/notification_models.dart';
import '../attention/ui/notification_permission_tile.dart';
import 'settings_group.dart';
/// The Settings entry for the browser notification permission.
///
@@ -10,24 +12,28 @@ import '../attention/ui/notification_permission_tile.dart';
/// Enable action. The controller is shared with the Runs attention surface, so
/// the permission shown here is the one that gates the live notices.
class SettingsNotificationsSection extends StatelessWidget {
const SettingsNotificationsSection({
super.key,
required this.controller,
});
const SettingsNotificationsSection({super.key, required this.controller});
final NotificationController controller;
@override
Widget build(BuildContext context) => AnimatedBuilder(
animation: controller,
builder: (context, _) => NotificationPermissionTile(
state: controller.permission,
asked: controller.asked,
onRequest: () {
// The platform answer updates the controller; the AnimationBuilder above
// redraws the tile with its own words.
controller.requestPermission();
},
builder: (context, _) => SettingsGroup(
title: notificationSectionTitle,
children: <Widget>[
SettingsGroupItem(
child: NotificationPermissionTile(
state: controller.permission,
asked: controller.asked,
onRequest: () {
// The platform answer updates the controller; the
// AnimationBuilder above redraws the tile with its own words.
controller.requestPermission();
},
),
),
],
),
);
}