opt: BoxFit desc (#737)

This commit is contained in:
My-Responsitories
2025-04-23 15:57:27 +08:00
committed by GitHub
parent cba70c3507
commit 7bb0307e6a
3 changed files with 24 additions and 26 deletions

View File

@@ -545,14 +545,14 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
plPlayerController.toggleVideoFit(boxFit);
},
child: Text(
"${PlPlayerController.videoFitType[boxFit.index]['desc']}",
boxFit.desc,
style: const TextStyle(color: Colors.white, fontSize: 13),
),
);
}).toList();
},
child: Text(
"${PlPlayerController.videoFitType[plPlayerController.videoFit.value.index]['desc']}",
plPlayerController.videoFit.value.desc,
style: const TextStyle(color: Colors.white, fontSize: 13),
),
),