Implementation
static Future<bool> colors(
{
Color? messageStatusSendingErrorColor,
Color? messageStatusDeliveredColor,
Color? messageStatusReadColor,
Color? messageAuthorNameTextColor,
ZowieColor? sentMessageBackgroundColor,
Color? sentMessageContentsColor,
Color? sentMessageImageUploadLoadingColor,
Color? sentMessageVideoUploadLoadingColor,
Color? sentMessageImagePlaceholderLoadingColor,
Color? sentMessageImagePlaceholderBackgroundColor,
Color? sentMessageLinksColor,
ZowieColor? incomingMessageBackgroundColor,
Color? incomingMessagePrimaryTextColor,
Color? incomingMessageSecondaryTextColor,
ZowieColor? incomingMessageFileIconColor,
Color? incomingMessageFileDownloadSuccessIconColor,
Color? incomingMessageDownloadFileIconColor,
Color? incomingMessageDownloadFileLoadingColor,
Color? incomingMessageImagePlaceholderLoadingColor,
Color? incomingMessageImagePlaceholderBackgroundColor,
Color? incomingMessageLinksColor,
Color? backgroundColor,
Color? newMessageTextColor,
Color? newMessageHintTextColor,
Color? sendAttachmentButtonColor,
ZowieColor? sendTextButtonColor,
Color? separatorColor,
Color? chatMessagesLoadingColor,
Color? quickButtonBackgroundColor,
Color? quickButtonBackgroundPressedColor,
Color? quickButtonTextColor,
Color? quickButtonPressedStrokeColor,
Color? quickButtonStrokeColor,
Color? actionButtonBackgroundColor,
Color? actionButtonBackgroundPressedColor,
Color? actionButtonTextColor,
Color? videoThumbnailPlaceholderColor,
Color? notificationErrorContentsColor,
Color? notificationErrorBackgroundColor,
Color? notificationSuccessContentsColor,
Color? notificationSuccessBackgroundColor,
Color? zowieLogoButtonBackgroundPressedColor,
Color? zowieLogoButtonPressedStrokeColor,
Color? playVideoButtonBackgroundColor,
Color? playVideoButtonBackgroundPressedColor,
Color? playVideoButtonPlayIconColor,
Color? actionButtonShadow,
Color? typingAnimationTintColor,
Color? announcementBackgroundColor,
Color? announcementStrokeColor,
Color? announcementTextColor,
Color? announcementIconColor}) async {
final bool result = await _channel.invokeMethod(
_methodColors,
<String, dynamic>{
"messageStatusSendingErrorColor":
_getColorHex(messageStatusSendingErrorColor),
"messageStatusDeliveredColor":
_getColorHex(messageStatusDeliveredColor),
"sentMessageBackgroundColor":
_getZowieColorJson(sentMessageBackgroundColor),
"sentMessageContentsColor": _getColorHex(sentMessageContentsColor),
"sentMessageImageUploadLoadingColor":
_getColorHex(sentMessageImageUploadLoadingColor),
"sentMessageVideoUploadLoadingColor":
_getColorHex(sentMessageVideoUploadLoadingColor),
"sentMessageImagePlaceholderLoadingColor":
_getColorHex(sentMessageImagePlaceholderLoadingColor),
"sentMessageImagePlaceholderBackgroundColor":
_getColorHex(sentMessageImagePlaceholderBackgroundColor),
"sentMessageLinksColor": _getColorHex(sentMessageLinksColor),
"incomingMessageBackgroundColor":
_getZowieColorJson(incomingMessageBackgroundColor),
"incomingMessagePrimaryTextColor":
_getColorHex(incomingMessagePrimaryTextColor),
"incomingMessageSecondaryTextColor":
_getColorHex(incomingMessageSecondaryTextColor),
"incomingMessageFileIconColor":
_getZowieColorJson(incomingMessageFileIconColor),
"incomingMessageFileDownloadSuccessIconColor":
_getColorHex(incomingMessageFileDownloadSuccessIconColor),
"incomingMessageDownloadFileIconColor":
_getColorHex(incomingMessageDownloadFileIconColor),
"incomingMessageDownloadFileLoadingColor":
_getColorHex(incomingMessageDownloadFileLoadingColor),
"incomingMessageImagePlaceholderLoadingColor":
_getColorHex(incomingMessageImagePlaceholderLoadingColor),
"incomingMessageImagePlaceholderBackgroundColor":
_getColorHex(incomingMessageImagePlaceholderBackgroundColor),
"incomingMessageLinksColor": _getColorHex(incomingMessageLinksColor),
"backgroundColor": _getColorHex(backgroundColor),
"newMessageTextColor": _getColorHex(newMessageTextColor),
"newMessageHintTextColor": _getColorHex(newMessageHintTextColor),
"sendAttachmentButtonColor": _getColorHex(sendAttachmentButtonColor),
"sendTextButtonColor": _getZowieColorJson(sendTextButtonColor),
"separatorColor": _getColorHex(separatorColor),
"chatMessagesLoadingColor": _getColorHex(chatMessagesLoadingColor),
"quickButtonBackgroundColor": _getColorHex(quickButtonBackgroundColor),
"quickButtonTextColor": _getColorHex(quickButtonTextColor),
"quickButtonPressedStrokeColor":
_getColorHex(quickButtonPressedStrokeColor),
"actionButtonBackgroundColor":
_getColorHex(actionButtonBackgroundColor),
"actionButtonBackgroundPressedColor":
_getColorHex(actionButtonBackgroundPressedColor),
"actionButtonTextColor": _getColorHex(actionButtonTextColor),
"videoThumbnailPlaceholderColor":
_getColorHex(videoThumbnailPlaceholderColor),
"notificationErrorContentsColor":
_getColorHex(notificationErrorContentsColor),
"notificationErrorBackgroundColor":
_getColorHex(notificationErrorBackgroundColor),
"notificationSuccessContentsColor":
_getColorHex(notificationSuccessContentsColor),
"notificationSuccessBackgroundColor":
_getColorHex(notificationSuccessBackgroundColor),
"zowieLogoButtonBackgroundPressedColor":
_getColorHex(zowieLogoButtonBackgroundPressedColor),
"zowieLogoButtonPressedStrokeColor":
_getColorHex(zowieLogoButtonPressedStrokeColor),
"playVideoButtonBackgroundColor":
_getColorHex(playVideoButtonBackgroundColor),
"playVideoButtonBackgroundPressedColor":
_getColorHex(playVideoButtonBackgroundPressedColor),
"playVideoButtonPlayIconColor":
_getColorHex(playVideoButtonPlayIconColor),
"actionButtonShadow": _getColorHex(actionButtonShadow),
"messageStatusReadColor": _getColorHex(messageStatusReadColor),
"messageAuthorNameTextColor": _getColorHex(messageAuthorNameTextColor),
"quickButtonBackgroundPressedColor":
_getColorHex(quickButtonBackgroundPressedColor),
"quickButtonStrokeColor": _getColorHex(quickButtonStrokeColor),
"typingAnimationTintColor": _getColorHex(typingAnimationTintColor),
"announcementBackgroundColor":
_getColorHex(announcementBackgroundColor),
"announcementStrokeColor": _getColorHex(announcementStrokeColor),
"announcementTextColor": _getColorHex(announcementTextColor),
"announcementIconColor": _getColorHex(announcementIconColor),
},
);
return result;
}