ChatTheme constructor
const
ChatTheme({
- Color backgroundColor = SdkColors.backgroundColorLight,
- Color cardBackgroundColor = SdkColors.backgroundColorLight,
- Color cardBorderColor = SdkColors.cardBorderColorLight,
- Color appBarBackgroundColor = SdkColors.appBarBackgroundColorLight,
- Color userMessageColor = SdkColors.userMessageColorLight,
- Color inputTextFieldColor = SdkColors.inputTextFieldColorLight,
- Color inputTextFieldBorderColor = SdkColors.inputTextFieldBorderColorLight,
- Color sendButtonColor = SdkColors.sendButtonColorLight,
- Color attachmentPickerBackgroundColor = SdkColors.attachmentPickerBackgroundColorLight,
- Color sendButtonForegroundColor = SdkColors.sendButtonTextColorLight,
- Color waveColor = SdkColors.waveColorLight,
- Color actionIconColor = Colors.black,
- Color cancelRecordingIconColor = SdkColors.messageControlIconColorLight,
- Color closeModalIconColor = SdkColors.messageControlIconColorLight,
- Color playAudioIconColor = SdkColors.messageControlIconColorLight,
- Color pauseAudioIconColor = SdkColors.messageControlIconColorLight,
- Color attachIconColor = SdkColors.messageControlIconColorLight,
- Color cameraIconColor = SdkColors.messageControlIconColorLight,
- Color galleryIconColor = SdkColors.messageControlIconColorLight,
- Color trashIconColor = SdkColors.iconWithBackdropColorLight,
- Color currencyIconColor = SdkColors.priceColorLight,
- Color numericControlIconColor = SdkColors.messageControlIconColorLight,
- Color imagePlaceholderIconColor = SdkColors.messageControlIconColorLight,
- Color imagePlaceholderBackgroundColor = SdkColors.imagePlaceHolderColorLight,
- Color productPriceBackgroundColor = SdkColors.discountBackgroundColorLight,
- Color pricePerSubunitColor = SdkColors.productCardSubtitleColorLight,
- Color pickerButtonBorderColor = SdkColors.pickerButtonBorderColor,
- Color quickReplyColor = SdkColors.userMessageColorLight,
- Color quickReplyBorderColor = SdkColors.quickReplyBorderColor,
- TextStyle quickReplyStyle = const TextStyle(color: SdkColors.userMessageTextColorLight),
- TextStyle userMessageTextStyle = const TextStyle(color: SdkColors.userMessageTextColorLight),
- TextStyle assistantMessageTextStyle = const TextStyle(color: SdkColors.assistantMessageTextColorLight, fontSize: SdkConstants.titleFontSize),
- TextStyle modalHeaderStyle = const TextStyle(color: SdkColors.modalHeaderColorLight, fontSize: SdkConstants.titleFontSize, fontWeight: FontWeight.bold),
- TextStyle hintTextStyle = const TextStyle(color: SdkColors.hintColorLight),
- TextStyle timerTextStyle = const TextStyle(color: SdkColors.timerColoLight),
- TextStyle productTitleStyle = const TextStyle(color: SdkColors.assistantMessageTextColorLight, fontSize: SdkConstants.cardTitleFontSize, fontWeight: FontWeight.bold),
- TextStyle productSubunitsStyle = const TextStyle(color: SdkColors.productCardSubtitleColorLight, fontSize: SdkConstants.cardSubtitleFontSize),
- TextStyle productPriceStyle = const TextStyle(color: SdkColors.priceColorLight, fontWeight: FontWeight.bold),
- TextStyle productSalePriceStrikeStyle = const TextStyle(color: SdkColors.discountStrikeColorLight, decoration: TextDecoration.lineThrough),
- TextStyle pricePerSubunitStyle = const TextStyle(color: SdkColors.pricePerUnitColorLight),
- TextStyle expandControlsStyle = const TextStyle(color: SdkColors.expandControlColorLight),
- ImageProvider<
Object> ? chatIconImage, - IconData sendButtonIcon = Icons.send_outlined,
- IconData recordAudioIcon = Icons.mic_none,
- IconData shopIcon = Icons.storefront,
- IconData cartIcon = Icons.shopping_cart_outlined,
- IconData cancelRecordingIcon = Icons.close,
- IconData closeModalIcon = Icons.close,
- IconData playAudioIcon = Icons.play_arrow_rounded,
- IconData pauseAudioIcon = Icons.pause_rounded,
- IconData attachIcon = Icons.add,
- IconData cameraIcon = Icons.photo_camera,
- IconData galleryIcon = Icons.insert_photo,
- IconData trashIcon = Icons.delete_outline,
- IconData imagePlaceHolderIcon = Icons.image,
- IconData currencyIcon = Icons.toll,
- IconData addIcon = Icons.add,
- IconData removeIcon = Icons.remove,
Implementation
const ChatTheme({
// Colors
this.backgroundColor = SdkColors.backgroundColorLight,
this.cardBackgroundColor = SdkColors.backgroundColorLight,
this.cardBorderColor = SdkColors.cardBorderColorLight,
this.appBarBackgroundColor = SdkColors.appBarBackgroundColorLight,
this.userMessageColor = SdkColors.userMessageColorLight,
this.inputTextFieldColor = SdkColors.inputTextFieldColorLight,
this.inputTextFieldBorderColor = SdkColors.inputTextFieldBorderColorLight,
this.sendButtonColor = SdkColors.sendButtonColorLight,
this.attachmentPickerBackgroundColor =
SdkColors.attachmentPickerBackgroundColorLight,
this.sendButtonForegroundColor = SdkColors.sendButtonTextColorLight,
this.waveColor = SdkColors.waveColorLight,
this.actionIconColor = Colors.black,
this.cancelRecordingIconColor = SdkColors.messageControlIconColorLight,
this.closeModalIconColor = SdkColors.messageControlIconColorLight,
this.playAudioIconColor = SdkColors.messageControlIconColorLight,
this.pauseAudioIconColor = SdkColors.messageControlIconColorLight,
this.attachIconColor = SdkColors.messageControlIconColorLight,
this.cameraIconColor = SdkColors.messageControlIconColorLight,
this.galleryIconColor = SdkColors.messageControlIconColorLight,
this.trashIconColor = SdkColors.iconWithBackdropColorLight,
this.currencyIconColor = SdkColors.priceColorLight,
this.numericControlIconColor = SdkColors.messageControlIconColorLight,
this.imagePlaceholderIconColor = SdkColors.messageControlIconColorLight,
this.imagePlaceholderBackgroundColor = SdkColors.imagePlaceHolderColorLight,
this.productPriceBackgroundColor = SdkColors.discountBackgroundColorLight,
this.pricePerSubunitColor = SdkColors.productCardSubtitleColorLight,
this.pickerButtonBorderColor = SdkColors.pickerButtonBorderColor,
this.quickReplyColor = SdkColors.userMessageColorLight,
this.quickReplyBorderColor = SdkColors.quickReplyBorderColor,
// Text Styles
this.quickReplyStyle = const TextStyle(
color: SdkColors.userMessageTextColorLight,
),
this.userMessageTextStyle = const TextStyle(
color: SdkColors.userMessageTextColorLight,
),
this.assistantMessageTextStyle = const TextStyle(
color: SdkColors.assistantMessageTextColorLight,
fontSize: SdkConstants.titleFontSize,
),
this.modalHeaderStyle = const TextStyle(
color: SdkColors.modalHeaderColorLight,
fontSize: SdkConstants.titleFontSize,
fontWeight: FontWeight.bold,
),
this.hintTextStyle = const TextStyle(color: SdkColors.hintColorLight),
this.timerTextStyle = const TextStyle(color: SdkColors.timerColoLight),
this.productTitleStyle = const TextStyle(
color: SdkColors.assistantMessageTextColorLight,
fontSize: SdkConstants.cardTitleFontSize,
fontWeight: FontWeight.bold,
),
this.productSubunitsStyle = const TextStyle(
color: SdkColors.productCardSubtitleColorLight,
fontSize: SdkConstants.cardSubtitleFontSize,
),
this.productPriceStyle = const TextStyle(
color: SdkColors.priceColorLight,
fontWeight: FontWeight.bold,
),
this.productSalePriceStrikeStyle = const TextStyle(
color: SdkColors.discountStrikeColorLight,
decoration: TextDecoration.lineThrough,
),
this.pricePerSubunitStyle = const TextStyle(
color: SdkColors.pricePerUnitColorLight,
),
this.expandControlsStyle = const TextStyle(
color: SdkColors.expandControlColorLight,
),
// Icons
this.chatIconImage,
this.sendButtonIcon = Icons.send_outlined,
this.recordAudioIcon = Icons.mic_none,
this.shopIcon = Icons.storefront,
this.cartIcon = Icons.shopping_cart_outlined,
this.cancelRecordingIcon = Icons.close,
this.closeModalIcon = Icons.close,
this.playAudioIcon = Icons.play_arrow_rounded,
this.pauseAudioIcon = Icons.pause_rounded,
this.attachIcon = Icons.add,
this.cameraIcon = Icons.photo_camera,
this.galleryIcon = Icons.insert_photo,
this.trashIcon = Icons.delete_outline,
this.imagePlaceHolderIcon = Icons.image,
this.currencyIcon = Icons.toll,
this.addIcon = Icons.add,
this.removeIcon = Icons.remove,
});