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

@ -387,6 +387,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
dividerColor: Colors.transparent,
tabs:
vdCtr.tabs.map((String name) => Tab(text: name)).toList(),
onTap: (index) => vdCtr.onTapTabbar(index),
),
),
),
@ -676,6 +677,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
() => VideoReplyPanel(
bvid: vdCtr.bvid,
oid: vdCtr.oid.value,
onControllerCreated: vdCtr.onControllerCreated,
),
)
],