mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +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);
|
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user