mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
fix video tab
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1009,7 +1009,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
child: videoPlayer(videoWidth, videoHeight),
|
||||
),
|
||||
Expanded(
|
||||
child: Expanded(
|
||||
child: Scaffold(
|
||||
key: videoDetailController.childKey,
|
||||
resizeToAvoidBottomInset: false,
|
||||
@@ -1034,7 +1033,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
@@ -1428,8 +1426,9 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
videoDetailController.tabCtr = TabController(
|
||||
vsync: this,
|
||||
length: tabs.length,
|
||||
initialIndex:
|
||||
videoDetailController.tabCtr.index.clamp(0, tabs.length - 1),
|
||||
initialIndex: tabs.isEmpty
|
||||
? 0
|
||||
: videoDetailController.tabCtr.index.clamp(0, tabs.length - 1),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user