mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: viewpoints panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user