feat: 播放顺序、视频详情操作栏样式
This commit is contained in:
25
lib/plugin/pl_player/models/play_repeat.dart
Normal file
25
lib/plugin/pl_player/models/play_repeat.dart
Normal file
@ -0,0 +1,25 @@
|
||||
enum PlayRepeat {
|
||||
pause,
|
||||
listOrder,
|
||||
singleCycle,
|
||||
listCycle,
|
||||
}
|
||||
|
||||
extension PlayRepeatExtension on PlayRepeat {
|
||||
static final List<String> _descList = [
|
||||
'播完暂停',
|
||||
'顺序播放',
|
||||
'单个循环',
|
||||
'列表循环',
|
||||
];
|
||||
get description => _descList[index];
|
||||
|
||||
static final List<double> _valueList = [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
];
|
||||
get value => _valueList[index];
|
||||
get defaultValue => _valueList[1];
|
||||
}
|
||||
Reference in New Issue
Block a user