/// 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 theme, so text scaling and platform defaults are /// never overridden here. /// /// The page is a column of grouped sections. On a narrow window it fills the /// width inside the top bar's own side inset; on a wide window it is centred /// at a reading width beside the section index. 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; /// The wide layout's jump index: shown beside the list from this body width, /// and [settingsIndexWidth] wide. const double settingsIndexMinWidth = 840; const double settingsIndexWidth = 176; /// How far below the viewport a lazy section starts loading, in viewports. const double settingsPreloadViewports = 1; /// How long a changing endpoint must settle before a server section reloads. const Duration settingsEndpointDebounce = Duration(milliseconds: 600);