opt: reply item

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-28 15:24:28 +08:00
parent 25fc85bd3a
commit 1f71dc9a67
8 changed files with 79 additions and 105 deletions

View File

@@ -48,9 +48,7 @@ class ReplyItem extends StatelessWidget {
// 点击整个评论区 评论详情/回复
onTap: () {
feedBack();
if (replyReply != null) {
replyReply!(replyItem);
}
replyReply?.call(replyItem);
},
onLongPress: () {
feedBack();
@@ -434,7 +432,7 @@ class ReplyItemRow extends StatelessWidget {
for (int i = 0; i < replies!.length; i++) ...[
InkWell(
// 一楼点击评论展开评论详情
onTap: () => replyReply!(replyItem),
onTap: () => replyReply?.call(replyItem),
onLongPress: () {
feedBack();
showModalBottomSheet(
@@ -534,7 +532,7 @@ class ReplyItemRow extends StatelessWidget {
if (extraRow == 1)
InkWell(
// 一楼点击【共xx条回复】展开评论详情
onTap: () => replyReply!(replyItem),
onTap: () => replyReply?.call(replyItem),
child: Container(
width: double.infinity,
padding: const EdgeInsets.fromLTRB(8, 5, 8, 8),