|
|
|
@ -100,7 +100,7 @@ class _ConversationTabState extends State<ConversationTab> |
|
|
|
return Obx(() { |
|
|
|
final filteredConversations = controller.conversations; |
|
|
|
|
|
|
|
if (filteredConversations.isEmpty) { |
|
|
|
if (filteredConversations.isEmpty && !controller.isSearch.value) { |
|
|
|
return Center( |
|
|
|
child: Text( |
|
|
|
controller.filterType.value == FilterType.none |
|
|
|
@ -114,12 +114,36 @@ class _ConversationTabState extends State<ConversationTab> |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
if (filteredConversations.isEmpty && controller.isSearch.value) { |
|
|
|
return Container( |
|
|
|
padding: EdgeInsets.only(top: 45.w), |
|
|
|
child: Column( |
|
|
|
children: [ |
|
|
|
|
|
|
|
Image.asset( |
|
|
|
Assets.imagesMessagePageEmpty, |
|
|
|
width: 69.w, |
|
|
|
), |
|
|
|
Text( |
|
|
|
"暂无消息" |
|
|
|
), |
|
|
|
Text( |
|
|
|
"换个关键词试试吧", |
|
|
|
style: TextStyle( |
|
|
|
color: const Color.fromRGBO(189, 189, 189, 1) |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
return ListView.builder( |
|
|
|
padding: const EdgeInsets.only(top: 8), |
|
|
|
itemCount: filteredConversations.length, |
|
|
|
itemBuilder: (context, index) { |
|
|
|
final conversation = filteredConversations[index]; |
|
|
|
return BuildConversationItem(conversation: conversation); |
|
|
|
return BuildConversationItem(conversation: conversation, key: ValueKey(conversation.id),); |
|
|
|
}, |
|
|
|
); |
|
|
|
}); |
|
|
|
|