fix: 设置自定义倍速后白屏

原因:List<double>并非List<dynamic>,赋值会产生错误
This commit is contained in:
orz12
2024-01-15 00:58:52 +08:00
parent db6662c980
commit 0cc25203b1

View File

@ -289,9 +289,8 @@ class PlPlayerController {
_longPressSpeed.value = videoStorage
.get(VideoBoxKey.longPressSpeedDefault, defaultValue: 2.0);
}
final List<double> speedsListTemp = videoStorage
.get(VideoBoxKey.customSpeedsList, defaultValue: <double>[]);
speedsList = List<double>.from(speedsListTemp);
speedsList = List<double>.from(videoStorage
.get(VideoBoxKey.customSpeedsList, defaultValue: <double>[]));
for (final PlaySpeed i in PlaySpeed.values) {
speedsList.add(i.value);
}