fix: 动态评论查看详情

This commit is contained in:
guozhigq
2024-07-26 22:47:14 +08:00
parent 9fe307f716
commit 341285a1cb
2 changed files with 9 additions and 6 deletions

View File

@ -106,7 +106,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
}
// 查看二级评论
void replyReply(replyItem, currentReply) {
void replyReply(replyItem, currentReply, loadMore) {
int oid = replyItem.oid;
int rpid = replyItem.rpid!;
Get.to(
@ -125,6 +125,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
source: 'dynamic',
replyType: ReplyType.values[replyType],
firstFloor: replyItem,
loadMore: loadMore,
),
),
);
@ -324,8 +325,10 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
replyItem: replyList[index],
showReplyRow: true,
replyLevel: '1',
replyReply: (replyItem, currentReply) =>
replyReply(replyItem, currentReply),
replyReply:
(replyItem, currentReply, loadMore) =>
replyReply(replyItem,
currentReply, loadMore),
replyType: ReplyType.values[replyType],
addReply: (replyItem) {
replyList[index]

View File

@ -21,7 +21,7 @@ class VideoReplyReplyPanel extends StatefulWidget {
this.replyType,
this.sheetHeight,
this.currentReply,
this.loadMore,
this.loadMore = true,
super.key,
});
final int? oid;
@ -32,7 +32,7 @@ class VideoReplyReplyPanel extends StatefulWidget {
final ReplyType? replyType;
final double? sheetHeight;
final dynamic currentReply;
final bool? loadMore;
final bool loadMore;
@override
State<VideoReplyReplyPanel> createState() => _VideoReplyReplyPanelState();
@ -142,7 +142,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
),
),
],
widget.loadMore != null && widget.loadMore!
widget.loadMore
? FutureBuilder(
future: _futureBuilderFuture,
builder: (BuildContext context, snapshot) {