AIChatTheme constructor
const
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),
})
Implementation
const AIChatTheme({
this.backgroundColor = const Color(0xFFF5F5F5),
this.userBubbleColor = const Color(0xFF1976D2),
this.assistantBubbleColor = const Color(0xFFFFFFFF),
this.userTextStyle = const TextStyle(color: Colors.white, fontSize: 15),
this.assistantTextStyle =
const TextStyle(color: Colors.black87, fontSize: 15),
this.bubbleRadius = const BorderRadius.all(Radius.circular(16)),
this.bubblePadding =
const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
this.messageSpacing = 8,
this.assistantAvatar,
this.userAvatar,
this.inputDecoration,
this.sendIcon = Icons.send_rounded,
this.sendButtonColor = const Color(0xFF1976D2),
});