feat: 默认倍速、自定义倍速

This commit is contained in:
guozhigq
2023-10-11 23:49:13 +08:00
parent 77f47b8242
commit 0e5b1633be
8 changed files with 367 additions and 52 deletions

View File

@ -9,35 +9,18 @@ enum PlaySpeed {
onePointSevenFive,
two,
twoPointTwoFive,
twoPointFive,
twoPointSevenFive,
twhree,
threePointTwoFive,
threePointFive,
threePointSevenFive,
four,
}
extension PlaySpeedExtension on PlaySpeed {
static final List<String> _descList = [
'0.25',
'0.5',
'0.75',
'正常速度',
'1.25',
'1.5',
'2.0倍',
'2.25倍',
'2.5倍',
'2.75倍',
'3.0倍',
'3.25倍',
'3.5倍',
'3.75倍',
'4.0倍'
'0.25',
'0.5',
'0.75',
'正常',
'1.25',
'1.5',
'1.75',
'2.0',
];
get description => _descList[index];
@ -50,14 +33,6 @@ extension PlaySpeedExtension on PlaySpeed {
1.5,
1.75,
2.0,
2.25,
2.5,
2.75,
3.0,
3.25,
3.5,
3.75,
4.0,
];
get value => _valueList[index];
get defaultValue => _valueList[3];