ChatTheme constructor

const ChatTheme({
  1. Color primaryColor = Colors.blue,
  2. Color secondaryColor = Colors.grey,
  3. Color backgroundColor = Colors.white,
  4. Color userBubbleColor = Colors.blue,
  5. Color assistantBubbleColor = Colors.grey,
  6. Color errorBubbleColor = Colors.red,
  7. Color textColor = Colors.white,
  8. Color inputBackgroundColor = Colors.white,
  9. double borderRadius = 12.0,
  10. EdgeInsetsGeometry bubblePadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
  11. EdgeInsetsGeometry messageListPadding = const EdgeInsets.all(16),
  12. TextStyle? userTextStyle,
  13. TextStyle? assistantTextStyle,
  14. TextStyle? errorTextStyle,
  15. TextStyle? inputTextStyle,
  16. int inputMaxLines = 5,
  17. Widget? sendButtonIcon,
  18. bool showAvatars = true,
  19. 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,
});