feat(app): match the web Settings rhythm

Group each Settings section under one compact title, tighten the page to the
web's 8/16 spacing and 20/16/32 page insets, and make field labels secondary so
only the section title carries emphasis. Drop the duplicate Notifications
heading now that the permission tile draws its own title.

Adds a rendered-geometry regression for the centred 720px column, the title and
section gaps, the secondary label role on both platforms, and the single
Notifications heading.
This commit is contained in:
2026-10-22 14:39:57 +01:00
parent dc0a52380b
commit edb558560f
4 changed files with 184 additions and 39 deletions
+18 -8
View File
@@ -3,25 +3,35 @@
/// Everything else (control heights, font sizes, colours, button padding) comes
/// from the active Material or Cupertino theme, so text scaling and platform
/// defaults are never overridden here.
///
/// The rhythm follows the web Settings page: one centred column, an 8px gap
/// between a section's compact title and its grouped body, and 16px between
/// sections. The web's 12px field label and helper lines are secondary type in
/// [settingsTextStyle]/[SettingsTextField], not fixed sizes.
library;
/// A comfortable reading width on wide windows; the body is centred inside it.
const double settingsContentMaxWidth = 720;
/// Space between the Settings sections.
const double settingsSectionGap = 24;
/// Space between the Settings sections (web `.settings` grid gap).
const double settingsSectionGap = 16;
/// Space between a section title and its controls.
const double settingsTitleGap = 12;
/// Space between a compact section title and its grouped body, and between the
/// blocks inside a section (web `.settings-section` grid gap).
const double settingsTitleGap = 8;
/// Space between a field and its supporting text.
const double settingsFieldGap = 6;
/// Space between a field label and its field, and between stacked secondary
/// lines (web `.settings-field` gap).
const double settingsFieldGap = 4;
/// Space between wrapped action buttons.
const double settingsControlGap = 8;
/// Padding around the page body on narrow windows.
const double settingsPagePadding = 16;
/// Page insets on narrow windows: a little more room above the first title,
/// and a clear run-out below the last section (web `.settings` padding).
const double settingsPageTopPadding = 20;
const double settingsPageSidePadding = 16;
const double settingsPageBottomPadding = 32;
/// Padding inside a standard Material card / Cupertino inset row.
const double settingsCardPadding = 16;