mod: 楼中楼回复

This commit is contained in:
guozhigq
2023-04-24 21:27:36 +08:00
parent a0441aa589
commit 1d97d1848d
5 changed files with 202 additions and 101 deletions

View File

@ -16,7 +16,6 @@ class VideoReplyController extends GetxController {
var res = await ReplyHttp.replyList(oid: aid, pageNum: 1, type: 1);
if (res['status']) {
res['data'] = ReplyData.fromJson(res['data']);
print(res['data'].replies);
}
return res;
}

View File

@ -12,10 +12,15 @@ class VideoReplyPanel extends StatefulWidget {
State<VideoReplyPanel> createState() => _VideoReplyPanelState();
}
class _VideoReplyPanelState extends State<VideoReplyPanel> {
class _VideoReplyPanelState extends State<VideoReplyPanel>
with AutomaticKeepAliveClientMixin {
final VideoReplyController _videoReplyController =
Get.put(VideoReplyController(), tag: Get.arguments['heroTag']);
// 添加页面缓存
@override
bool get wantKeepAlive => true;
@override
Widget build(BuildContext context) {
return FutureBuilder(