fix: 动态评论查看详情
This commit is contained in:
@ -106,7 +106,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 查看二级评论
|
// 查看二级评论
|
||||||
void replyReply(replyItem, currentReply) {
|
void replyReply(replyItem, currentReply, loadMore) {
|
||||||
int oid = replyItem.oid;
|
int oid = replyItem.oid;
|
||||||
int rpid = replyItem.rpid!;
|
int rpid = replyItem.rpid!;
|
||||||
Get.to(
|
Get.to(
|
||||||
@ -125,6 +125,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
source: 'dynamic',
|
source: 'dynamic',
|
||||||
replyType: ReplyType.values[replyType],
|
replyType: ReplyType.values[replyType],
|
||||||
firstFloor: replyItem,
|
firstFloor: replyItem,
|
||||||
|
loadMore: loadMore,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -324,8 +325,10 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
replyItem: replyList[index],
|
replyItem: replyList[index],
|
||||||
showReplyRow: true,
|
showReplyRow: true,
|
||||||
replyLevel: '1',
|
replyLevel: '1',
|
||||||
replyReply: (replyItem, currentReply) =>
|
replyReply:
|
||||||
replyReply(replyItem, currentReply),
|
(replyItem, currentReply, loadMore) =>
|
||||||
|
replyReply(replyItem,
|
||||||
|
currentReply, loadMore),
|
||||||
replyType: ReplyType.values[replyType],
|
replyType: ReplyType.values[replyType],
|
||||||
addReply: (replyItem) {
|
addReply: (replyItem) {
|
||||||
replyList[index]
|
replyList[index]
|
||||||
|
|||||||
@ -21,7 +21,7 @@ class VideoReplyReplyPanel extends StatefulWidget {
|
|||||||
this.replyType,
|
this.replyType,
|
||||||
this.sheetHeight,
|
this.sheetHeight,
|
||||||
this.currentReply,
|
this.currentReply,
|
||||||
this.loadMore,
|
this.loadMore = true,
|
||||||
super.key,
|
super.key,
|
||||||
});
|
});
|
||||||
final int? oid;
|
final int? oid;
|
||||||
@ -32,7 +32,7 @@ class VideoReplyReplyPanel extends StatefulWidget {
|
|||||||
final ReplyType? replyType;
|
final ReplyType? replyType;
|
||||||
final double? sheetHeight;
|
final double? sheetHeight;
|
||||||
final dynamic currentReply;
|
final dynamic currentReply;
|
||||||
final bool? loadMore;
|
final bool loadMore;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<VideoReplyReplyPanel> createState() => _VideoReplyReplyPanelState();
|
State<VideoReplyReplyPanel> createState() => _VideoReplyReplyPanelState();
|
||||||
@ -142,7 +142,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
widget.loadMore != null && widget.loadMore!
|
widget.loadMore
|
||||||
? FutureBuilder(
|
? FutureBuilder(
|
||||||
future: _futureBuilderFuture,
|
future: _futureBuilderFuture,
|
||||||
builder: (BuildContext context, snapshot) {
|
builder: (BuildContext context, snapshot) {
|
||||||
|
|||||||
Reference in New Issue
Block a user