fix: video tabbar length

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-23 21:45:19 +08:00
parent c79364cef2
commit 952f1429eb
2 changed files with 6 additions and 2 deletions

View File

@@ -1156,7 +1156,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
bool showReply = true,
}) {
int length = (showIntro ? 1 : 0) + (showReply ? 1 : 0);
if (length != 0 && videoDetailController.tabCtr.length != length) {
if (videoDetailController.tabCtr.length != length) {
videoDetailController.tabCtr = TabController(length: length, vsync: this);
}