ReplitThreadListStyle class
Host overrides for ReplitThreadList's look, on top of the theme tokens.
Every field is optional; null falls back to the token-derived default
noted on the field. Install one on ReplitTheme.threadListStyle to
restyle every thread list; a widget's own style wins field by field:
ReplitThreadList(
sections: sections,
style: const ReplitThreadListStyle(unreadDotColor: Color(0xFF3366CC)),
)
There is deliberately no background field: the list is transparent, and the panel the host mounts it in owns the ground.
- Annotations
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- hoverColor → Color?
-
A row's fill while hovered. Defaults to
surfaceContainerLow; translucent, so it composites over the selected fill.final - iconColor → Color?
-
A thread's leading glyph. Defaults to
onSurfaceVariant.final - pinColor → Color?
-
The pinned glyph. Defaults to
onSurfaceMuted.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sectionLabelStyle → TextStyle?
-
Merged over a section header's default
labelSmall+onSurfaceMuted.final - selectedColor → Color?
-
The selected row's fill. Defaults to
surfaceContainer, the ladder's selected-row rung.final - titleStyle → TextStyle?
-
Merged over a title's default —
labelMedium+onSurface, in the emphasised cut while the thread is unread.final - unreadDotColor → Color?
-
The unread dot. Defaults to
primary.final
Methods
-
lerp(
ReplitThreadListStyle? other, double t) → ReplitThreadListStyle -
Linear interpolation, for theme transitions. A null
otherreturns this style unchanged. -
merge(
ReplitThreadListStyle? other) → ReplitThreadListStyle -
A copy where
other's fields win over this style's. -
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.
override