StreamMessageRepliesStyle class
Visual styling properties for a message replies row.
Defines the appearance of replies rows including label, spacing, padding, and connector styling. All properties use StreamMessageLayoutProperty for placement-aware resolution. Use StreamMessageRepliesStyle.from for uniform values across all placements.
{@tool snippet}
Uniform style:
StreamMessageRepliesStyle.from(
labelColor: Colors.blue,
spacing: 12,
)
{@end-tool}
{@tool snippet}
Placement-aware style:
StreamMessageRepliesStyle(
labelColor: StreamMessageLayoutProperty.resolveWith((p) {
final isEnd = p.alignment == StreamMessageAlignment.end;
return isEnd ? Colors.blue : Colors.purple;
}),
)
{@end-tool}
See also:
- StreamMessageItemThemeData, which wraps this style for theming.
- StreamMessageReplies, which uses this styling.
- Annotations
-
- @themeGen
- @immutable
Constructors
-
StreamMessageRepliesStyle({StreamMessageLayoutProperty<
TextStyle?> ? labelTextStyle, StreamMessageLayoutProperty<Color?> ? labelColor, StreamMessageLayoutProperty<double?> ? spacing, StreamMessageLayoutProperty<EdgeInsetsGeometry?> ? padding, StreamMessageLayoutProperty<Color?> ? connectorColor, StreamMessageLayoutProperty<double?> ? connectorStrokeWidth, StreamMessageLayoutClip? clipBehavior}) -
Creates a replies style with optional resolver-based overrides.
const
- StreamMessageRepliesStyle.from({TextStyle? labelTextStyle, Color? labelColor, double? spacing, EdgeInsetsGeometry? padding, Color? connectorColor, double? connectorStrokeWidth, Clip? clipBehavior})
-
A convenience constructor that constructs a
StreamMessageRepliesStyle given simple values.
factory
Properties
- canMerge → bool
-
no setterinherited
- clipBehavior → StreamMessageLayoutClip?
-
How to clip the widget's content.
final
-
connectorColor
→ StreamMessageLayoutProperty<
Color?> ? -
The color of the connector path linking the row to the message bubble.
final
-
connectorStrokeWidth
→ StreamMessageLayoutProperty<
double?> ? -
The stroke width of the connector path.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labelColor
→ StreamMessageLayoutProperty<
Color?> ? -
The color for the replies label text.
final
-
labelTextStyle
→ StreamMessageLayoutProperty<
TextStyle?> ? -
The text style for the replies label.
final
-
padding
→ StreamMessageLayoutProperty<
EdgeInsetsGeometry?> ? -
The padding around the replies row content.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spacing
→ StreamMessageLayoutProperty<
double?> ? -
The gap between elements (connector, avatars, label).
final
Methods
-
copyWith(
{StreamMessageLayoutProperty< TextStyle?> ? labelTextStyle, StreamMessageLayoutProperty<Color?> ? labelColor, StreamMessageLayoutProperty<double?> ? spacing, StreamMessageLayoutProperty<EdgeInsetsGeometry?> ? padding, StreamMessageLayoutProperty<Color?> ? connectorColor, StreamMessageLayoutProperty<double?> ? connectorStrokeWidth, StreamMessageLayoutClip? clipBehavior}) → StreamMessageRepliesStyle -
inherited
-
merge(
StreamMessageRepliesStyle? other) → StreamMessageRepliesStyle -
inherited
-
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
Static Methods
-
lerp(
StreamMessageRepliesStyle? a, StreamMessageRepliesStyle? b, double t) → StreamMessageRepliesStyle? - Linearly interpolate between two StreamMessageRepliesStyle objects.