fix: add const constructors and remove unused imports
This commit is contained in:
@@ -399,27 +399,27 @@ class SettingsService extends BaseSharedPreferencesService {
|
||||
// HotKey Objects (New implementation)
|
||||
Map<String, HotKey> getDefaultKeyboardHotkeys() {
|
||||
return {
|
||||
'play_pause': HotKey(key: PhysicalKeyboardKey.space),
|
||||
'volume_up': HotKey(key: PhysicalKeyboardKey.arrowUp),
|
||||
'volume_down': HotKey(key: PhysicalKeyboardKey.arrowDown),
|
||||
'seek_forward': HotKey(key: PhysicalKeyboardKey.arrowRight),
|
||||
'seek_backward': HotKey(key: PhysicalKeyboardKey.arrowLeft),
|
||||
'seek_forward_large': HotKey(key: PhysicalKeyboardKey.arrowRight, modifiers: [HotKeyModifier.shift]),
|
||||
'seek_backward_large': HotKey(key: PhysicalKeyboardKey.arrowLeft, modifiers: [HotKeyModifier.shift]),
|
||||
'fullscreen_toggle': HotKey(key: PhysicalKeyboardKey.keyF),
|
||||
'mute_toggle': HotKey(key: PhysicalKeyboardKey.keyM),
|
||||
'subtitle_toggle': HotKey(key: PhysicalKeyboardKey.keyS),
|
||||
'audio_track_next': HotKey(key: PhysicalKeyboardKey.keyA),
|
||||
'subtitle_track_next': HotKey(key: PhysicalKeyboardKey.keyS, modifiers: [HotKeyModifier.shift]),
|
||||
'chapter_next': HotKey(key: PhysicalKeyboardKey.keyN),
|
||||
'chapter_previous': HotKey(key: PhysicalKeyboardKey.keyP),
|
||||
'speed_increase': HotKey(key: PhysicalKeyboardKey.equal),
|
||||
'speed_decrease': HotKey(key: PhysicalKeyboardKey.minus),
|
||||
'speed_reset': HotKey(key: PhysicalKeyboardKey.keyR),
|
||||
'sub_seek_next': HotKey(key: PhysicalKeyboardKey.arrowRight, modifiers: [HotKeyModifier.control]),
|
||||
'sub_seek_prev': HotKey(key: PhysicalKeyboardKey.arrowLeft, modifiers: [HotKeyModifier.control]),
|
||||
'shader_toggle': HotKey(key: PhysicalKeyboardKey.keyG),
|
||||
'skip_marker': HotKey(key: PhysicalKeyboardKey.enter),
|
||||
'play_pause': const HotKey(key: PhysicalKeyboardKey.space),
|
||||
'volume_up': const HotKey(key: PhysicalKeyboardKey.arrowUp),
|
||||
'volume_down': const HotKey(key: PhysicalKeyboardKey.arrowDown),
|
||||
'seek_forward': const HotKey(key: PhysicalKeyboardKey.arrowRight),
|
||||
'seek_backward': const HotKey(key: PhysicalKeyboardKey.arrowLeft),
|
||||
'seek_forward_large': const HotKey(key: PhysicalKeyboardKey.arrowRight, modifiers: [HotKeyModifier.shift]),
|
||||
'seek_backward_large': const HotKey(key: PhysicalKeyboardKey.arrowLeft, modifiers: [HotKeyModifier.shift]),
|
||||
'fullscreen_toggle': const HotKey(key: PhysicalKeyboardKey.keyF),
|
||||
'mute_toggle': const HotKey(key: PhysicalKeyboardKey.keyM),
|
||||
'subtitle_toggle': const HotKey(key: PhysicalKeyboardKey.keyS),
|
||||
'audio_track_next': const HotKey(key: PhysicalKeyboardKey.keyA),
|
||||
'subtitle_track_next': const HotKey(key: PhysicalKeyboardKey.keyS, modifiers: [HotKeyModifier.shift]),
|
||||
'chapter_next': const HotKey(key: PhysicalKeyboardKey.keyN),
|
||||
'chapter_previous': const HotKey(key: PhysicalKeyboardKey.keyP),
|
||||
'speed_increase': const HotKey(key: PhysicalKeyboardKey.equal),
|
||||
'speed_decrease': const HotKey(key: PhysicalKeyboardKey.minus),
|
||||
'speed_reset': const HotKey(key: PhysicalKeyboardKey.keyR),
|
||||
'sub_seek_next': const HotKey(key: PhysicalKeyboardKey.arrowRight, modifiers: [HotKeyModifier.control]),
|
||||
'sub_seek_prev': const HotKey(key: PhysicalKeyboardKey.arrowLeft, modifiers: [HotKeyModifier.control]),
|
||||
'shader_toggle': const HotKey(key: PhysicalKeyboardKey.keyG),
|
||||
'skip_marker': const HotKey(key: PhysicalKeyboardKey.enter),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user