ChatTheme constructor
const
ChatTheme({
- Color primaryColor = Colors.blue,
- Color secondaryColor = Colors.grey,
- Color backgroundColor = Colors.white,
- Color userBubbleColor = Colors.blue,
- Color assistantBubbleColor = Colors.grey,
- Color errorBubbleColor = Colors.red,
- Color textColor = Colors.white,
- Color inputBackgroundColor = Colors.white,
- double borderRadius = 12.0,
- EdgeInsetsGeometry bubblePadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
- EdgeInsetsGeometry messageListPadding = const EdgeInsets.all(16),
- TextStyle? userTextStyle,
- TextStyle? assistantTextStyle,
- TextStyle? errorTextStyle,
- TextStyle? inputTextStyle,
- int inputMaxLines = 5,
- Widget? sendButtonIcon,
- bool showAvatars = true,
- bool showTimestamps = true,
Implementation
const ChatTheme({
this.primaryColor = Colors.blue,
this.secondaryColor = Colors.grey,
this.backgroundColor = Colors.white,
this.userBubbleColor = Colors.blue,
this.assistantBubbleColor = Colors.grey,
this.errorBubbleColor = Colors.red,
this.textColor = Colors.white,
this.inputBackgroundColor = Colors.white,
this.borderRadius = 12.0,
this.bubblePadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
this.messageListPadding = const EdgeInsets.all(16),
this.userTextStyle,
this.assistantTextStyle,
this.errorTextStyle,
this.inputTextStyle,
this.inputMaxLines = 5, // Changed to int
this.sendButtonIcon,
this.showAvatars = true,
this.showTimestamps = true,
});