opt: viewpoints panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-03 12:26:46 +08:00
parent 98158c4f0c
commit c8a4be00ce

View File

@@ -1471,8 +1471,16 @@ class _VideoDetailPageState extends State<VideoDetailPage>
body: SingleChildScrollView( body: SingleChildScrollView(
child: Column( child: Column(
children: [ children: [
...List.generate(videoDetailController.viewPointList.length, ...List.generate(
(index) { videoDetailController.viewPointList.length * 2 - 1,
(rawIndex) {
if (rawIndex % 2 == 1) {
return Divider(
height: 1,
color: Theme.of(context).dividerColor.withOpacity(0.1),
);
}
int index = rawIndex ~/ 2;
Segment segment = Segment segment =
videoDetailController.viewPointList[index]; videoDetailController.viewPointList[index];
if (currentIndex == -1 && if (currentIndex == -1 &&