mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt subtitle
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -574,16 +574,14 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
style: TextStyle(color: Colors.white),
|
||||
),
|
||||
),
|
||||
...widget.videoDetailController!.subtitles
|
||||
.asMap()
|
||||
.entries
|
||||
.map((entry) {
|
||||
...widget.videoDetailController!.subtitles.indexed
|
||||
.map((e) {
|
||||
return PopupMenuItem<int>(
|
||||
value: entry.key + 1,
|
||||
value: e.$1 + 1,
|
||||
onTap: () => widget.videoDetailController!
|
||||
.setSubtitle(entry.key + 1),
|
||||
.setSubtitle(e.$1 + 1),
|
||||
child: Text(
|
||||
"${entry.value['lan_doc']}",
|
||||
"${e.$2['lan_doc']}",
|
||||
style: const TextStyle(color: Colors.white),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user