conversationInner method
Widget
conversationInner(
- TencentCloudChatThemeColors colors
)
Implementation
Widget conversationInner(TencentCloudChatThemeColors colors) {
bool pinned = isPin();
final isDesktopScreen = TencentCloudChatScreenAdapter.deviceScreenType == DeviceScreenType.desktop;
return Ink(
decoration: BoxDecoration(
border: const Border(
bottom: BorderSide(
width: 1,
color: Color.fromARGB(8, 0, 0, 0),
),
),
color: widget.isSelected
? colors.primaryColor.withOpacity(0.05)
: (pinned ? colors.conversationItemIsPinedBgColor : colors.conversationItemNormalBgColor),
),
child: TencentCloudChatGesture(
onTap: _navigateToMessage,
onSecondaryTapDown: isDesktopScreen ? (_) => _showDesktopMenu(_) : null,
child: Padding(
padding: EdgeInsets.symmetric(
vertical: getHeight(12),
horizontal: getWidth(8),
),
child: Row(
children: [
TencentCloudChat.instance.dataInstance.conversation.conversationBuilder?.getConversationItemAvatarBuilder(
widget.conversation,
widget.isOnline,
),
TencentCloudChat.instance.dataInstance.conversation.conversationBuilder
?.getConversationItemContentBuilder(
widget.conversation,
),
TencentCloudChat.instance.dataInstance.conversation.conversationBuilder?.getConversationItemInfoBuilder(
widget.conversation,
),
],
),
),
),
);
}