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
@@ -73,7 +73,7 @@ class _SettingsAndroidDownloadSectionState
Widget build(BuildContext context) {
final cupertino = usesCupertinoHost(context);
final muted = cupertino
? CupertinoTheme.of(context).textTheme.tabLabelTextStyle.copyWith(
? CupertinoTheme.of(context).textTheme.textStyle.copyWith(
color: CupertinoColors.secondaryLabel.resolveFrom(context),
)
: Theme.of(context).textTheme.bodySmall?.copyWith(
@@ -81,18 +81,12 @@ class _SettingsAndroidDownloadSectionState
);
final update = _update;
if (_loading) {
return Padding(
padding: const EdgeInsets.all(16),
child: Text('Checking for the Android app…', style: muted),
);
return Text('Checking for the Android app…', style: muted);
}
if (update == null) {
return Padding(
padding: const EdgeInsets.all(16),
child: Text(
'This server offers no Android app yet. Build one with ./install --apk.',
style: muted,
),
return Text(
'This server offers no Android app yet. Build one with ./install --apk.',
style: muted,
);
}
final button = cupertino
@@ -107,30 +101,27 @@ class _SettingsAndroidDownloadSectionState
icon: const Icon(Icons.download),
label: const Text('Download APK'),
);
return Padding(
padding: const EdgeInsets.all(16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Pipelines for Android · build ${update.versionCode}'),
if (update.notes.isNotEmpty) ...[
const SizedBox(height: 4),
Text(update.notes, style: muted),
],
const SizedBox(height: 12),
button,
const SizedBox(height: 8),
Text(
'Open it on the phone, allow installs from this browser, then sign '
'in under Settings. Later builds arrive through Check for updates.',
style: muted,
),
if (_message case final message?) ...[
const SizedBox(height: 8),
Text(message, style: muted),
],
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Pipelines for Android · build ${update.versionCode}'),
if (update.notes.isNotEmpty) ...[
const SizedBox(height: 4),
Text(update.notes, style: muted),
],
),
const SizedBox(height: 12),
button,
const SizedBox(height: 8),
Text(
'Open it on the phone and allow installs from this browser; later '
'builds arrive through Check for updates.',
style: muted,
),
if (_message case final message?) ...[
const SizedBox(height: 8),
Text(message, style: muted),
],
],
);
}
}