ActerChatTheme constructor

const ActerChatTheme({
  1. dynamic attachmentButtonIcon,
  2. dynamic attachmentButtonMargin,
  3. dynamic backgroundColor = const Color.fromRGBO(36, 38, 50, 0),
  4. dynamic dateDividerMargin = const EdgeInsets.only(bottom: 32, top: 16),
  5. dynamic dateDividerTextStyle = const TextStyle(color: Colors.white, fontSize: 12, fontWeight: FontWeight.w800, height: 1.333),
  6. dynamic deliveredIcon,
  7. dynamic documentIcon = const Icon(Atlas.file_thin, size: 18),
  8. dynamic emptyChatPlaceholderTextStyle = const TextStyle(color: neutral2, fontSize: 16, fontWeight: FontWeight.w500, height: 1.5),
  9. dynamic errorColor = error,
  10. dynamic errorIcon,
  11. dynamic inputBackgroundColor = const Color.fromRGBO(51, 53, 64, 0.4),
  12. dynamic inputBorderRadius = const BorderRadius.vertical(top: Radius.circular(0)),
  13. dynamic inputContainerDecoration,
  14. dynamic inputMargin = EdgeInsets.zero,
  15. dynamic inputPadding = const EdgeInsets.symmetric(vertical: 5, horizontal: 14),
  16. dynamic inputTextColor = neutral7,
  17. dynamic inputTextCursorColor,
  18. dynamic inputTextDecoration = const InputDecoration(border: InputBorder.none, contentPadding: EdgeInsets.zero),
  19. dynamic inputTextStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500, height: 1.5),
  20. dynamic inputElevation = 0,
  21. dynamic inputSurfaceTintColor = Colors.transparent,
  22. dynamic messageBorderRadius = 20,
  23. dynamic messageInsetsHorizontal = 20,
  24. dynamic messageInsetsVertical = 16,
  25. dynamic messageMaxWidth = 440,
  26. dynamic primaryColor = const Color(0xffFF8E00),
  27. dynamic receivedEmojiMessageTextStyle = const TextStyle(fontSize: 40),
  28. dynamic receivedMessageBodyBoldTextStyle,
  29. dynamic receivedMessageBodyCodeTextStyle,
  30. dynamic receivedMessageBodyLinkTextStyle,
  31. dynamic receivedMessageBodyTextStyle = const TextStyle(color: neutral7, fontSize: 12, fontWeight: FontWeight.w500, height: 1.5),
  32. dynamic receivedMessageCaptionTextStyle = const TextStyle(color: neutral7, fontSize: 12, fontWeight: FontWeight.w500, height: 1.333),
  33. dynamic receivedMessageDocumentIconColor = primary,
  34. dynamic receivedMessageLinkDescriptionTextStyle = const TextStyle(color: neutral7, fontSize: 12, fontWeight: FontWeight.w400, height: 1.428),
  35. dynamic receivedMessageLinkTitleTextStyle = const TextStyle(color: neutral7, fontSize: 14, fontWeight: FontWeight.w800, height: 1.375),
  36. dynamic secondaryColor = const Color.fromRGBO(51, 53, 64, 1),
  37. dynamic seenIcon,
  38. dynamic sendButtonIcon = const Icon(Atlas.paper_airplane),
  39. dynamic sendButtonMargin,
  40. dynamic sendingIcon,
  41. dynamic sentEmojiMessageTextStyle = const TextStyle(fontSize: 40),
  42. dynamic sentMessageBodyBoldTextStyle,
  43. dynamic sentMessageBodyCodeTextStyle,
  44. dynamic sentMessageBodyLinkTextStyle,
  45. dynamic sentMessageBodyTextStyle = const TextStyle(color: neutral7, fontSize: 12, fontWeight: FontWeight.w500, height: 1.5),
  46. dynamic sentMessageCaptionTextStyle = const TextStyle(color: neutral7WithOpacity, fontSize: 12, fontWeight: FontWeight.w500, height: 1.333),
  47. dynamic sentMessageDocumentIconColor = neutral7,
  48. dynamic sentMessageLinkDescriptionTextStyle = const TextStyle(color: neutral7, fontSize: 12, fontWeight: FontWeight.w400, height: 1.428),
  49. dynamic sentMessageLinkTitleTextStyle = const TextStyle(color: neutral7, fontSize: 14, fontWeight: FontWeight.w800, height: 1.375),
  50. dynamic statusIconPadding = const EdgeInsets.symmetric(horizontal: 4),
  51. dynamic userAvatarImageBackgroundColor = Colors.transparent,
  52. dynamic userAvatarNameColors = colors,
  53. dynamic userAvatarTextStyle = const TextStyle(color: neutral7, fontSize: 12, fontWeight: FontWeight.w800, height: 1.333),
  54. dynamic userNameTextStyle = const TextStyle(fontSize: 12, fontWeight: FontWeight.w800, height: 1.333),
  55. dynamic systemMessageTheme = const SystemMessageTheme(margin: EdgeInsets.zero, textStyle: TextStyle()),
  56. dynamic unreadHeaderTheme = const UnreadHeaderTheme(color: secondary, textStyle: TextStyle(color: neutral2, fontSize: 12, fontWeight: FontWeight.w500, height: 1.333)),
  57. dynamic typingIndicatorTheme = const TypingIndicatorTheme(animatedCirclesColor: Color(0xFFFFFFFF), animatedCircleSize: 8.0, bubbleColor: Colors.transparent, countAvatarColor: Color(0xFFDA88A1), countTextColor: Color(0xFFFFFFFF), bubbleBorder: BorderRadius.all(Radius.circular(27.0)), multipleUserTextStyle: TextStyle(fontSize: 12, fontWeight: FontWeight.w500, color: neutral2)),
})

Implementation

const ActerChatTheme({
  super.attachmentButtonIcon,
  super.attachmentButtonMargin,
  super.backgroundColor = const Color.fromRGBO(36, 38, 50, 0),
  super.dateDividerMargin = const EdgeInsets.only(bottom: 32, top: 16),
  super.dateDividerTextStyle = const TextStyle(
    color: Colors.white,
    fontSize: 12,
    fontWeight: FontWeight.w800,
    height: 1.333,
  ),
  super.deliveredIcon,
  super.documentIcon = const Icon(Atlas.file_thin, size: 18),
  super.emptyChatPlaceholderTextStyle = const TextStyle(
    color: neutral2,
    fontSize: 16,
    fontWeight: FontWeight.w500,
    height: 1.5,
  ),
  super.errorColor = error,
  super.errorIcon,
  super.inputBackgroundColor = const Color.fromRGBO(51, 53, 64, 0.4),
  super.inputBorderRadius = const BorderRadius.vertical(
    top: Radius.circular(0),
  ),
  super.inputContainerDecoration,
  super.inputMargin = EdgeInsets.zero,
  super.inputPadding = const EdgeInsets.symmetric(
    vertical: 5,
    horizontal: 14,
  ),
  super.inputTextColor = neutral7,
  super.inputTextCursorColor,
  super.inputTextDecoration = const InputDecoration(
    border: InputBorder.none,
    contentPadding: EdgeInsets.zero,
  ),
  super.inputTextStyle = const TextStyle(
    fontSize: 14,
    fontWeight: FontWeight.w500,
    height: 1.5,
  ),
  super.inputElevation = 0,
  super.inputSurfaceTintColor = Colors.transparent,
  super.messageBorderRadius = 20,
  super.messageInsetsHorizontal = 20,
  super.messageInsetsVertical = 16,
  super.messageMaxWidth = 440,
  super.primaryColor = const Color(0xffFF8E00),
  super.receivedEmojiMessageTextStyle = const TextStyle(
    fontSize: 40,
  ),
  super.receivedMessageBodyBoldTextStyle,
  super.receivedMessageBodyCodeTextStyle,
  super.receivedMessageBodyLinkTextStyle,
  super.receivedMessageBodyTextStyle = const TextStyle(
    color: neutral7,
    fontSize: 12,
    fontWeight: FontWeight.w500,
    height: 1.5,
  ),
  super.receivedMessageCaptionTextStyle = const TextStyle(
    color: neutral7,
    fontSize: 12,
    fontWeight: FontWeight.w500,
    height: 1.333,
  ),
  super.receivedMessageDocumentIconColor = primary,
  super.receivedMessageLinkDescriptionTextStyle = const TextStyle(
    color: neutral7,
    fontSize: 12,
    fontWeight: FontWeight.w400,
    height: 1.428,
  ),
  super.receivedMessageLinkTitleTextStyle = const TextStyle(
    color: neutral7,
    fontSize: 14,
    fontWeight: FontWeight.w800,
    height: 1.375,
  ),
  super.secondaryColor = const Color.fromRGBO(51, 53, 64, 1),
  super.seenIcon,
  super.sendButtonIcon = const Icon(Atlas.paper_airplane),
  super.sendButtonMargin,
  super.sendingIcon,
  super.sentEmojiMessageTextStyle = const TextStyle(
    fontSize: 40,
  ),
  super.sentMessageBodyBoldTextStyle,
  super.sentMessageBodyCodeTextStyle,
  super.sentMessageBodyLinkTextStyle,
  super.sentMessageBodyTextStyle = const TextStyle(
    color: neutral7,
    fontSize: 12,
    fontWeight: FontWeight.w500,
    height: 1.5,
  ),
  super.sentMessageCaptionTextStyle = const TextStyle(
    color: neutral7WithOpacity,
    fontSize: 12,
    fontWeight: FontWeight.w500,
    height: 1.333,
  ),
  super.sentMessageDocumentIconColor = neutral7,
  super.sentMessageLinkDescriptionTextStyle = const TextStyle(
    color: neutral7,
    fontSize: 12,
    fontWeight: FontWeight.w400,
    height: 1.428,
  ),
  super.sentMessageLinkTitleTextStyle = const TextStyle(
    color: neutral7,
    fontSize: 14,
    fontWeight: FontWeight.w800,
    height: 1.375,
  ),
  super.statusIconPadding = const EdgeInsets.symmetric(horizontal: 4),
  super.userAvatarImageBackgroundColor = Colors.transparent,
  super.userAvatarNameColors = colors,
  super.userAvatarTextStyle = const TextStyle(
    color: neutral7,
    fontSize: 12,
    fontWeight: FontWeight.w800,
    height: 1.333,
  ),
  super.userNameTextStyle = const TextStyle(
    fontSize: 12,
    fontWeight: FontWeight.w800,
    height: 1.333,
  ),
  super.systemMessageTheme = const SystemMessageTheme(
    margin: EdgeInsets.zero,
    textStyle: TextStyle(),
  ),
  super.unreadHeaderTheme = const UnreadHeaderTheme(
    color: secondary,
    textStyle: TextStyle(
      color: neutral2,
      fontSize: 12,
      fontWeight: FontWeight.w500,
      height: 1.333,
    ),
  ),
  super.typingIndicatorTheme = const TypingIndicatorTheme(
    animatedCirclesColor: Color(0xFFFFFFFF),
    animatedCircleSize: 8.0,
    bubbleColor: Colors.transparent,
    countAvatarColor: Color(0xFFDA88A1),
    countTextColor: Color(0xFFFFFFFF),
    bubbleBorder: BorderRadius.all(Radius.circular(27.0)),
    multipleUserTextStyle: TextStyle(
      fontSize: 12,
      fontWeight: FontWeight.w500,
      color: neutral2,
    ),
  ),
});