SfChatThemeData class

Holds the color and typography values for a SfChatTheme. Use this class to configure a SfChatTheme widget, or to set the SfThemeData.chatThemeData for a SfTheme widget.

To obtain the current theme, use SfChatTheme.of.

Mixed-in types
Annotations

Constructors

SfChatThemeData({Color? actionButtonForegroundColor, Color? actionButtonBackgroundColor, Color? actionButtonFocusColor, Color? actionButtonHoverColor, Color? actionButtonSplashColor, Color? actionButtonDisabledForegroundColor, Color? actionButtonDisabledBackgroundColor, double actionButtonElevation = 0.0, double actionButtonFocusElevation = 0.0, double actionButtonHoverElevation = 0.0, double actionButtonHighlightElevation = 0.0, double actionButtonDisabledElevation = 0.0, MouseCursor? actionButtonMouseCursor, ShapeBorder? actionButtonShape, Color? outgoingBubbleContentBackgroundColor, Color? incomingBubbleContentBackgroundColor, TextStyle? editorTextStyle, TextStyle? outgoingContentTextStyle, TextStyle? incomingContentTextStyle, TextStyle? outgoingPrimaryHeaderTextStyle, TextStyle? incomingPrimaryHeaderTextStyle, TextStyle? outgoingSecondaryHeaderTextStyle, TextStyle? incomingSecondaryHeaderTextStyle, ShapeBorder? outgoingBubbleContentShape, ShapeBorder? incomingBubbleContentShape})
Create a SfChatThemeData given a set of exact values. All the values must be specified.
const
SfChatThemeData.raw({Color? actionButtonForegroundColor, Color? actionButtonBackgroundColor, Color? actionButtonFocusColor, Color? actionButtonHoverColor, Color? actionButtonSplashColor, Color? actionButtonDisabledForegroundColor, Color? actionButtonDisabledBackgroundColor, double? actionButtonElevation, double? actionButtonFocusElevation, double? actionButtonHoverElevation, double? actionButtonDisabledElevation, double? actionButtonHighlightElevation, ShapeBorder? actionButtonShape, MouseCursor? actionButtonMouseCursor, Color? outgoingBubbleContentBackgroundColor, Color? incomingBubbleContentBackgroundColor, TextStyle? editorTextStyle, TextStyle? outgoingContentTextStyle, TextStyle? incomingContentTextStyle, TextStyle? outgoingPrimaryHeaderTextStyle, TextStyle? incomingPrimaryHeaderTextStyle, TextStyle? outgoingSecondaryHeaderTextStyle, TextStyle? incomingSecondaryHeaderTextStyle, ShapeBorder? outgoingBubbleContentShape, ShapeBorder? incomingBubbleContentShape})
Returns a new instance of SfChatThemeData.raw for the given values.
factory

Properties

actionButtonBackgroundColor Color?
Color for the background of action buttons.
final
actionButtonDisabledBackgroundColor Color?
Color for the background of action buttons when disabled.
final
actionButtonDisabledElevation double
Depth of the action button's shadow when disabled.
final
actionButtonDisabledForegroundColor Color?
Color for the foreground elements (text or icons) of action buttons when disabled.
final
actionButtonElevation double
Depth of the action button's shadow in its default state.
final
actionButtonFocusColor Color?
Color for the action button when it is focused.
final
actionButtonFocusElevation double
Depth of the action button's shadow when focused.
final
actionButtonForegroundColor Color?
Color for the foreground elements (text or icons) of action buttons.
final
actionButtonHighlightElevation double
Depth of the action button's shadow when highlighted.
final
actionButtonHoverColor Color?
Color for the action button when hovered over.
final
actionButtonHoverElevation double
Depth of the action button's shadow when hovered over.
final
actionButtonMouseCursor MouseCursor?
Customizes the cursor that appears when you hover over the button.
final
actionButtonShape ShapeBorder?
Shape of the action button.
final
actionButtonSplashColor Color?
Color for the splash effect of action buttons.
final
editorTextStyle TextStyle?
Text style for the message editor.
final
hashCode int
The hash code for this object.
no setteroverride
incomingBubbleContentBackgroundColor Color?
Background color of incoming message bubbles.
final
incomingBubbleContentShape ShapeBorder?
Shape of the incoming message bubble.
final
incomingContentTextStyle TextStyle?
Text style for incoming message content.
final
incomingPrimaryHeaderTextStyle TextStyle?
Text style for the primary header of incoming messages.
final
incomingSecondaryHeaderTextStyle TextStyle?
Text style for the secondary header of incoming messages.
final
outgoingBubbleContentBackgroundColor Color?
Background color of outgoing message bubbles.
final
outgoingBubbleContentShape ShapeBorder?
Shape of the outgoing message bubble.
final
outgoingContentTextStyle TextStyle?
Text style for outgoing message content.
final
outgoingPrimaryHeaderTextStyle TextStyle?
Text style for the primary header of outgoing messages.
final
outgoingSecondaryHeaderTextStyle TextStyle?
Text style for the secondary header of outgoing messages.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Color? actionButtonForegroundColor, Color? actionButtonBackgroundColor, Color? actionButtonFocusColor, Color? actionButtonHoverColor, Color? actionButtonSplashColor, Color? actionButtonDisabledForegroundColor, Color? actionButtonDisabledBackgroundColor, double? actionButtonElevation, double? actionButtonFocusElevation, double? actionButtonHoverElevation, double? actionButtonDisabledElevation, double? actionButtonHighlightElevation, ShapeBorder? actionButtonShape, MouseCursor? actionButtonMouseCursor, Color? outgoingBubbleContentBackgroundColor, Color? incomingBubbleContentBackgroundColor, TextStyle? editorTextStyle, TextStyle? outgoingContentTextStyle, TextStyle? incomingContentTextStyle, TextStyle? outgoingPrimaryHeaderTextStyle, TextStyle? incomingPrimaryHeaderTextStyle, TextStyle? outgoingSecondaryHeaderTextStyle, TextStyle? incomingSecondaryHeaderTextStyle, ShapeBorder? outgoingBubbleContentShape, ShapeBorder? incomingBubbleContentShape}) SfChatThemeData
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

lerp(SfChatThemeData? a, SfChatThemeData? b, double t) SfChatThemeData?