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