opt sub reply

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-28 17:51:44 +08:00
parent 328034f3ed
commit 138b7935f3

View File

@@ -480,28 +480,32 @@ class ReplyItemGrpc extends StatelessWidget {
padding = const EdgeInsets.fromLTRB(8, 4, 8, 4); padding = const EdgeInsets.fromLTRB(8, 4, 8, 4);
} }
} }
void showMore() => showModalBottomSheet(
context: context,
useSafeArea: true,
isScrollControlled: true,
constraints: BoxConstraints(
maxWidth: min(640, context.mediaQueryShortestSide),
),
builder: (context) {
return morePanel(
context: context,
item: childReply,
onDelete: () => onDelete?.call(replyItem, index),
isSubReply: true,
);
},
);
return InkWell( return InkWell(
onTap: () => onTap: () =>
replyReply?.call(replyItem, childReply.id.toInt()), replyReply?.call(replyItem, childReply.id.toInt()),
onLongPress: () { onLongPress: Utils.isMobile
feedBack(); ? () {
showModalBottomSheet( feedBack();
context: context, showMore();
useSafeArea: true, }
isScrollControlled: true, : null,
constraints: BoxConstraints( onSecondaryTap: Utils.isMobile ? null : showMore,
maxWidth: min(640, context.mediaQueryShortestSide),
),
builder: (context) {
return morePanel(
context: context,
item: childReply,
onDelete: () => onDelete?.call(replyItem, index),
isSubReply: true,
);
},
);
},
child: Padding( child: Padding(
padding: padding, padding: padding,
child: Text.rich( child: Text.rich(