mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-26 03:56:45 +08:00
opt sub reply
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -480,28 +480,32 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
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(
|
||||
onTap: () =>
|
||||
replyReply?.call(replyItem, childReply.id.toInt()),
|
||||
onLongPress: () {
|
||||
feedBack();
|
||||
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,
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
onLongPress: Utils.isMobile
|
||||
? () {
|
||||
feedBack();
|
||||
showMore();
|
||||
}
|
||||
: null,
|
||||
onSecondaryTap: Utils.isMobile ? null : showMore,
|
||||
child: Padding(
|
||||
padding: padding,
|
||||
child: Text.rich(
|
||||
|
||||
Reference in New Issue
Block a user