AIChatTheme constructor

const AIChatTheme({
  1. Color backgroundColor = const Color(0xFFF5F5F5),
  2. Color userBubbleColor = const Color(0xFF1976D2),
  3. Color assistantBubbleColor = const Color(0xFFFFFFFF),
  4. TextStyle userTextStyle = const TextStyle(color: Colors.white, fontSize: 15),
  5. TextStyle assistantTextStyle = const TextStyle(color: Colors.black87, fontSize: 15),
  6. BorderRadius bubbleRadius = const BorderRadius.all(Radius.circular(16)),
  7. EdgeInsets bubblePadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
  8. double messageSpacing = 8,
  9. Widget? assistantAvatar,
  10. Widget? userAvatar,
  11. InputDecoration? inputDecoration,
  12. IconData sendIcon = Icons.send_rounded,
  13. 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),
});