SfAIAssistViewThemeData class
Holds the color and typography values for a SfAIAssistViewTheme. Use this class to configure a SfAIAssistViewTheme widget, or to set the SfThemeData.assistThemeData for a SfTheme widget.
To obtain the current theme, use SfAIAssistViewTheme.of.
- Mixed-in types
- Annotations
Constructors
-
SfAIAssistViewThemeData({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? requestAvatarBackgroundColor, Color? responseAvatarBackgroundColor, Color? requestBubbleContentBackgroundColor, Color? responseBubbleContentBackgroundColor, TextStyle? editorTextStyle, TextStyle? requestContentTextStyle, TextStyle? responseContentTextStyle, TextStyle? requestPrimaryHeaderTextStyle, TextStyle? responsePrimaryHeaderTextStyle, TextStyle? requestSecondaryHeaderTextStyle, TextStyle? responseSecondaryHeaderTextStyle, WidgetStateProperty<
TextStyle?> ? suggestionItemTextStyle, ShapeBorder? requestBubbleContentShape, ShapeBorder? responseBubbleContentShape, Color? suggestionBackgroundColor, ShapeBorder? suggestionBackgroundShape, WidgetStateProperty<Color?> ? suggestionItemBackgroundColor, WidgetStateProperty<ShapeBorder?> ? suggestionItemShape, Color? responseToolbarBackgroundColor, ShapeBorder? responseToolbarBackgroundShape, WidgetStateProperty<Color?> ? responseToolbarItemBackgroundColor, WidgetStateProperty<ShapeBorder?> ? responseToolbarItemShape}) -
Create a SfAIAssistViewThemeData given a set of exact values.
All the values must be specified.
const
-
SfAIAssistViewThemeData.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? requestAvatarBackgroundColor, Color? responseAvatarBackgroundColor, Color? requestBubbleContentBackgroundColor, Color? responseBubbleContentBackgroundColor, TextStyle? editorTextStyle, TextStyle? requestContentTextStyle, TextStyle? responseContentTextStyle, TextStyle? requestPrimaryHeaderTextStyle, TextStyle? responsePrimaryHeaderTextStyle, TextStyle? requestSecondaryHeaderTextStyle, TextStyle? responseSecondaryHeaderTextStyle, WidgetStateProperty<
TextStyle?> ? suggestionItemTextStyle, ShapeBorder? requestBubbleContentShape, ShapeBorder? responseBubbleContentShape, Color? suggestionBackgroundColor, ShapeBorder? suggestionBackgroundShape, WidgetStateProperty<Color?> ? suggestionItemBackgroundColor, WidgetStateProperty<ShapeBorder?> ? suggestionItemShape, Color? responseToolbarBackgroundColor, ShapeBorder? responseToolbarBackgroundShape, WidgetStateProperty<Color?> ? responseToolbarItemBackgroundColor, WidgetStateProperty<ShapeBorder?> ? responseToolbarItemShape}) -
Returns a new instance of SfAIAssistViewThemeData.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
- requestAvatarBackgroundColor → Color?
-
Background color of request avatar.
final
- requestBubbleContentBackgroundColor → Color?
-
Background color of request message bubbles.
final
- requestBubbleContentShape → ShapeBorder?
-
Shape of the request message bubble.
final
- requestContentTextStyle → TextStyle?
-
Text style for request message content.
final
- requestPrimaryHeaderTextStyle → TextStyle?
-
Text style for the primary header of request messages.
final
- requestSecondaryHeaderTextStyle → TextStyle?
-
Text style for the secondary header of request messages.
final
- responseAvatarBackgroundColor → Color?
-
Background color of response avatar.
final
- responseBubbleContentBackgroundColor → Color?
-
Background color of response message bubbles.
final
- responseBubbleContentShape → ShapeBorder?
-
Shape of the response message bubble.
final
- responseContentTextStyle → TextStyle?
-
Text style for response message content.
final
- responsePrimaryHeaderTextStyle → TextStyle?
-
Text style for the primary header of response messages.
final
- responseSecondaryHeaderTextStyle → TextStyle?
-
Text style for the secondary header of response messages.
final
- responseToolbarBackgroundColor → Color?
-
Background color of the footer area.
final
- responseToolbarBackgroundShape → ShapeBorder?
-
Shape of the footer area.
final
-
responseToolbarItemBackgroundColor
→ WidgetStateProperty<
Color?> ? -
Color of the footer item background, which can vary based on the
widget's state.
This uses a WidgetStateProperty to allow state-specific changes.
final
-
responseToolbarItemShape
→ WidgetStateProperty<
ShapeBorder?> ? -
Shape of the footer item, which can vary based on the widget's state.
This uses a WidgetStateProperty to allow state-specific changes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suggestionBackgroundColor → Color?
-
Background color of the suggestion area.
final
- suggestionBackgroundShape → ShapeBorder?
-
Shape of the suggestion area.
final
-
suggestionItemBackgroundColor
→ WidgetStateProperty<
Color?> ? -
Color of the suggestion item background, which can vary based on the
widget's state.
This uses a WidgetStateProperty to allow state-specific changes.
final
-
suggestionItemShape
→ WidgetStateProperty<
ShapeBorder?> ? -
Shape of the suggestion item, which can vary based on the widget's state.
This uses a WidgetStateProperty to allow state-specific changes.
final
-
suggestionItemTextStyle
→ WidgetStateProperty<
TextStyle?> ? -
Text style for the suggestion items.
final
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? requestAvatarBackgroundColor, Color? responseAvatarBackgroundColor, Color? requestBubbleContentBackgroundColor, Color? responseBubbleContentBackgroundColor, TextStyle? editorTextStyle, TextStyle? requestContentTextStyle, TextStyle? responseContentTextStyle, TextStyle? requestPrimaryHeaderTextStyle, TextStyle? responsePrimaryHeaderTextStyle, TextStyle? requestSecondaryHeaderTextStyle, TextStyle? responseSecondaryHeaderTextStyle, WidgetStateProperty< TextStyle?> ? suggestionItemTextStyle, ShapeBorder? requestBubbleContentShape, ShapeBorder? responseBubbleContentShape, Color? suggestionBackgroundColor, ShapeBorder? suggestionBackgroundShape, WidgetStateProperty<Color?> ? suggestionItemBackgroundColor, WidgetStateProperty<ShapeBorder?> ? suggestionItemShape, Color? responseToolbarBackgroundColor, ShapeBorder? responseToolbarBackgroundShape, WidgetStateProperty<Color?> ? responseToolbarItemBackgroundColor, WidgetStateProperty<ShapeBorder?> ? responseToolbarItemShape}) → SfAIAssistViewThemeData -
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