MSSettingsSection class

An iOS inset-grouped settings section.

Renders an optional uppercase muted header caption above the grouped container, the children rows edge-to-edge inside a rounded bordered card, and an optional muted footer caption below. Hairline dividers are auto-inserted between child rows so each row stays divider-agnostic.

The container and caption classNames are produced by the recipe functions in settings_section.recipe.dart and are theme-overridable via containerClassName and captionClassName.

Example — account section:

MSSettingsSection(
  header: 'Account',
  footer: 'Manage your personal information.',
  children: [
    MSSettingsNavRow(title: 'Profile', to: '/settings/profile'),
    MSSettingsNavRow(title: 'Email', to: '/settings/email'),
  ],
)
Inheritance
Annotations

Constructors

MSSettingsSection({Key? key, required List<Widget> children, String? header, String? footer, String? containerClassName, String? captionClassName})
Creates a MSSettingsSection.
const

Properties

captionClassName → String?
Optional caller className appended after settingsSectionCaptionRecipe for both the header and footer captions.
final
children → List<Widget>
The row widgets displayed inside the grouped container.
final
containerClassName → String?
Optional caller className appended after settingsSectionContainerRecipe for the grouped container.
final
Optional muted caption rendered below the container.
final
hashCode → int
The hash code for this object.
no setterinherited
Optional uppercase muted caption rendered above the container.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited