fix PopupMenuText

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-14 14:04:00 +08:00
parent cef4beaa0c
commit bc5ce11449
3 changed files with 13 additions and 29 deletions

View File

@@ -2169,7 +2169,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
),
PopupMenuText(
title: '选择画质',
initialValue: qa.code,
value: () => qa.code,
onSelected: (value) {
final video = videoDetailController.findVideoByQa(value);
url = video.baseUrl;
@@ -2189,7 +2189,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
),
PopupMenuText(
title: 'webp预设',
initialValue: preset,
value: () => preset,
onSelected: (value) {
preset = value;
return false;