feat: 点击tab返回顶部

This commit is contained in:
guozhigq
2024-06-20 23:38:49 +08:00
parent 75525595c6
commit 1db1d8f598
3 changed files with 17 additions and 0 deletions

View File

@ -19,12 +19,14 @@ class VideoReplyPanel extends StatefulWidget {
final int? oid;
final int rpid;
final String? replyLevel;
final Function(ScrollController)? onControllerCreated;
const VideoReplyPanel({
this.bvid,
this.oid,
this.rpid = 0,
this.replyLevel,
this.onControllerCreated,
super.key,
});
@ -68,6 +70,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
_futureBuilderFuture = _videoReplyController.queryReplyList();
scrollController = ScrollController();
widget.onControllerCreated?.call(scrollController);
fabAnimationCtr.forward();
scrollListener();
}