StreamJumpToUnreadButtonThemeData class

Theme data for customizing StreamJumpToUnreadButton widgets.

The outer pill container is styled with backgroundColor, side, elevation, and shadowColor. The inner leading and trailing sub-buttons (which use StreamButton) are independently styled via leadingStyle and trailingStyle.

{@tool snippet}

Customize button appearance globally:

StreamTheme(
  jumpToUnreadButtonTheme: StreamJumpToUnreadButtonThemeData(
    backgroundColor: Colors.white,
    side: BorderSide(color: Colors.grey),
    leadingStyle: StreamButtonThemeStyle(
      foregroundColor: WidgetStatePropertyAll(Colors.black),
      textStyle: WidgetStatePropertyAll(myTextStyle),
    ),
    trailingStyle: StreamButtonThemeStyle(
      iconSize: WidgetStatePropertyAll(20),
    ),
  ),
)

{@end-tool}

See also:

Annotations

Constructors

StreamJumpToUnreadButtonThemeData({Color? backgroundColor, OutlinedBorder? shape, BorderSide? side, double? elevation, Color? shadowColor, EdgeInsetsGeometry? padding, StreamButtonThemeStyle? leadingStyle, StreamButtonThemeStyle? trailingStyle})
Creates a jump-to-unread button theme with optional style overrides.
const

Properties

backgroundColor Color?
The background color of the pill container.
final
canMerge bool
no setterinherited
elevation double?
The Material elevation of the pill container.
final
hashCode int
The hash code for this object.
no setterinherited
leadingStyle StreamButtonThemeStyle?
The style applied to the leading StreamButton (icon + label).
final
padding EdgeInsetsGeometry?
The padding between the pill border and the inner content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
The shadow color used with elevation.
final
shape OutlinedBorder?
The shape of the pill container.
final
side BorderSide?
The border side of the pill container.
final
trailingStyle StreamButtonThemeStyle?
The style applied to the trailing StreamButton.icon (dismiss).
final

Methods

copyWith({Color? backgroundColor, OutlinedBorder? shape, BorderSide? side, double? elevation, Color? shadowColor, EdgeInsetsGeometry? padding, StreamButtonThemeStyle? leadingStyle, StreamButtonThemeStyle? trailingStyle}) StreamJumpToUnreadButtonThemeData
inherited
merge(StreamJumpToUnreadButtonThemeData? other) StreamJumpToUnreadButtonThemeData
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