/// 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 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 (web `.settings` grid gap). const double settingsSectionGap = 16; /// 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 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; /// 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;