Files
pipelines/app/lib/features/settings/settings_layout.dart
T
alan 3ec580c2d9 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.
2026-10-31 03:07:20 +00:00

42 lines
1.5 KiB
Dart

/// The one place the Settings screen keeps its necessary layout constraints.
///
/// 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 page is a column of grouped sections. It starts at the top bar's own
/// side inset, so on a wide window the groups line up under the title pill
/// instead of floating in the middle, and stops growing at a reading width.
library;
/// The widest the column of groups grows on a wide window.
const double settingsContentMaxWidth = 720;
/// Space between the Settings groups.
const double settingsSectionGap = 24;
/// Space between a group's header and its rows, and between stacked blocks
/// inside a row.
const double settingsTitleGap = 8;
/// Space between a field label and its field, and between stacked secondary
/// lines.
const double settingsFieldGap = 4;
/// Space between wrapped action buttons.
const double settingsControlGap = 8;
/// The page's side inset: the segmented bar's own, so the groups' edge lines
/// up with the title pill.
const double settingsPageSidePadding = 12;
/// Space below the top bar (added to its height) and below the last group.
const double settingsPageTopPadding = 8;
const double settingsPageBottomPadding = 32;
/// The inset of a row's text inside a Material group (the [ListTile] default).
const double settingsRowInset = 16;
/// The corner radius of a Material group.
const double settingsGroupRadius = 16;