AIChatTheme class
Theme configuration for AI chat widgets.
Constructors
- AIChatTheme({Color backgroundColor = const Color(0xFFF5F5F5), Color userBubbleColor = const Color(0xFF1976D2), Color assistantBubbleColor = const Color(0xFFFFFFFF), TextStyle userTextStyle = const TextStyle(color: Colors.white, fontSize: 15), TextStyle assistantTextStyle = const TextStyle(color: Colors.black87, fontSize: 15), BorderRadius bubbleRadius = const BorderRadius.all(Radius.circular(16)), EdgeInsets bubblePadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 10), double messageSpacing = 8, Widget? assistantAvatar, Widget? userAvatar, InputDecoration? inputDecoration, IconData sendIcon = Icons.send_rounded, Color sendButtonColor = const Color(0xFF1976D2)})
-
const
- AIChatTheme.dark()
-
A modern dark theme for AI chat.
factory
- AIChatTheme.gradient()
-
A gradient-accent theme.
factory
- AIChatTheme.light()
-
A clean light theme for AI chat.
factory
Properties
- assistantAvatar → Widget?
-
Icon/avatar for the assistant.
final
- assistantBubbleColor → Color
-
Color for assistant message bubbles.
final
- assistantTextStyle → TextStyle
-
Text style for assistant messages.
final
- backgroundColor → Color
-
Background color of the chat area.
final
- bubblePadding → EdgeInsets
-
Padding inside message bubbles.
final
- bubbleRadius → BorderRadius
-
Border radius for message bubbles.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputDecoration → InputDecoration?
-
Input bar decoration.
final
- messageSpacing → double
-
Spacing between messages.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendButtonColor → Color
-
Send button color.
final
- sendIcon → IconData
-
Send button icon.
final
- userAvatar → Widget?
-
Icon/avatar for the user.
final
- userBubbleColor → Color
-
Color for user message bubbles.
final
- userTextStyle → TextStyle
-
Text style for user messages.
final
Methods
-
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