ListRowThemeData class
Theme data for list-like rows with a highlighted/selected state.
This is intentionally more expressive than the global Theme.highlight/Theme.onHighlight pair because list rows often contain title text, secondary metadata, semantic accents, markers, and separators. All fields are optional; widgets fall back through the parent Theme.
Constructors
- ListRowThemeData({Color? background, Color? alternateBackground, Color? foreground, Color? mutedForeground, Color? accentForeground, Color? markerForeground, Color? separatorForeground, Color? selectedBackground, Color? selectedForeground, Color? selectedMutedForeground, Color? selectedAccentForeground, Color? selectedMarkerForeground, Color? selectedSeparatorForeground})
-
const
Properties
- accentForeground → Color?
-
Semantic accent color for row markers or important tokens.
Defaults to Theme.primary.
final
- alternateBackground → Color?
-
Background for alternating rows.
Defaults to Theme.resolvedSurfaceVariant.
final
- background → Color?
-
Default row background.
Defaults to Theme.surface.
final
- foreground → Color?
-
Primary row text color.
Defaults to Theme.onSurface.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- markerForeground → Color?
-
Row marker/caret color.
Defaults to accentForeground.
final
- mutedForeground → Color?
-
Secondary row text color.
Defaults to Theme.muted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedAccentForeground → Color?
-
Selected row accent color.
Defaults to selectedForeground.
final
- selectedBackground → Color?
-
Selected row background.
Defaults to Theme.resolvedHighlight.
final
- selectedForeground → Color?
-
Primary selected row text color.
Defaults to Theme.resolvedOnHighlight.
final
- selectedMarkerForeground → Color?
-
Selected row marker/caret color.
Defaults to selectedAccentForeground.
final
- selectedMutedForeground → Color?
-
Secondary selected row text color.
Defaults to selectedForeground.
final
- selectedSeparatorForeground → Color?
-
Selected row separator/divider color.
Defaults to selectedMutedForeground.
final
- separatorForeground → Color?
-
Separator/divider color between rows.
Defaults to Theme.resolvedOutline.
final
Methods
-
copyWith(
{Color? background, Color? alternateBackground, Color? foreground, Color? mutedForeground, Color? accentForeground, Color? markerForeground, Color? separatorForeground, Color? selectedBackground, Color? selectedForeground, Color? selectedMutedForeground, Color? selectedAccentForeground, Color? selectedMarkerForeground, Color? selectedSeparatorForeground}) → ListRowThemeData - Copy with selective overrides.
-
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