feat: 私信图片查看

This commit is contained in:
guozhigq
2024-09-29 14:01:26 +08:00
parent b34fc2ff1f
commit 11aa465a8f
4 changed files with 83 additions and 29 deletions

View File

@ -193,27 +193,21 @@ class _WhisperDetailPageState extends State<WhisperDetailPage>
? const SizedBox()
: Align(
alignment: Alignment.topCenter,
child: ListView.builder(
child: ListView.separated(
itemCount: messageList.length,
shrinkWrap: true,
reverse: true,
itemBuilder: (_, int i) {
if (i == 0) {
return Column(
children: [
ChatItem(
item: messageList[i],
e_infos: _whisperDetailController
.eInfos),
const SizedBox(height: 20),
],
);
} else {
return ChatItem(
item: messageList[i],
e_infos:
_whisperDetailController.eInfos);
}
return ChatItem(
item: messageList[i],
e_infos: _whisperDetailController.eInfos,
ctr: _whisperDetailController,
);
},
separatorBuilder: (_, int i) {
return i == 0
? const SizedBox(height: 20)
: const SizedBox.shrink();
},
),
),