SettingsThemeData class

Colors and text styles of a SettingsList.

Pass it as the list's lightTheme or darkTheme. Fields left null keep the style's defaults.

Constructors

SettingsThemeData({Color? trailingTextColor, Color? settingsListBackground, Color? settingsSectionBackground, Color? dividerColor, Color? tileHighlightColor, Color? titleTextColor, Color? leadingIconsColor, Color? tileDescriptionTextColor, Color? settingsTileTextColor, Color? inactiveTitleColor, Color? inactiveSubtitleColor, Color? inactiveSwitchColor, TextStyle? titleTextStyle, TextStyle? tileTextStyle, TextStyle? tileDescriptionTextStyle, Color? selectedTileColor, Color? selectedTileTextColor, Color? selectedTileIconColor, Color? listPaneBackground})
Creates a theme; every field is optional.
const

Properties

dividerColor → Color?
Line between tiles (iOS, macOS, GNOME and web styles), card border (Windows style).
final
hashCode → int
The hash code for this object.
no setterinherited
inactiveSubtitleColor → Color?
description and value color of a disabled tile (Android, Windows, GNOME and web styles), and its titleDescription in the macOS style.
final
inactiveSwitchColor → Color?
Color applied to the switch thumb/track when the tile is disabled. Overrides the default inactiveTitleColor used for the switch. Without it, the macOS style draws a paler accent, like System Settings.
final
inactiveTitleColor → Color?
Title and icon color of a disabled tile.
final
leadingIconsColor → Color?
Leading and trailing icons, and the chevron.
final
listPaneBackground → Color?
Background of a SettingsSplitView's list pane when it shows two panes: the tinted iPad sidebar, the surface-dim Android homepage. Defaults to settingsListBackground on the web.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedTileColor → Color?
Fill of the selected tile in the list pane of a SettingsSplitView: the tile whose page shows in the detail pane.
final
selectedTileIconColor → Color?
Leading icon and chevron color of the selected tile in a SettingsSplitView.
final
selectedTileTextColor → Color?
Title and value color of the selected tile in a SettingsSplitView.
final
settingsListBackground → Color?
Background of the whole list.
final
settingsSectionBackground → Color?
Background of the cards.
final
settingsTileTextColor → Color?
Tile title text color.
final
tileDescriptionTextColor → Color?
description and value text color in the Android and web styles; description and titleDescription in the macOS, Windows and GNOME styles.
final
tileDescriptionTextStyle → TextStyle?
Override the text style for tile descriptions/values.
final
tileHighlightColor → Color?
Pressed tile. The GNOME style also hovers with 3/8 of its opacity.
final
tileTextStyle → TextStyle?
Override the text style for tile titles.
final
titleTextColor → Color?
Section header text color. In the iOS style also titleDescription and description.
final
titleTextStyle → TextStyle?
Override the text style for section titles. When set, titleTextColor is still applied if titleTextStyle does not specify a color.
final
trailingTextColor → Color?
Color of a tile's value in the iOS, macOS, Windows and GNOME styles.
final

Methods

copyWith({Color? settingsListBackground, Color? trailingTextColor, Color? leadingIconsColor, Color? settingsSectionBackground, Color? dividerColor, Color? tileDescriptionTextColor, Color? tileHighlightColor, Color? titleTextColor, Color? settingsTileTextColor, Color? inactiveTitleColor, Color? inactiveSubtitleColor, Color? inactiveSwitchColor, TextStyle? titleTextStyle, TextStyle? tileTextStyle, TextStyle? tileDescriptionTextStyle, Color? selectedTileColor, Color? selectedTileTextColor, Color? selectedTileIconColor, Color? listPaneBackground}) → SettingsThemeData
A copy of this theme with the given fields replaced.
merge({SettingsThemeData? theme}) → SettingsThemeData
This theme with the non-null fields of theme on top.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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