mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 15:38:13 -07:00
feat: Bunch of small UI improvements for native player
This commit is contained in:
parent
66ffc8c112
commit
edbd8d467c
23 changed files with 329 additions and 327 deletions
|
|
@ -47,6 +47,7 @@ class PlayerSettings {
|
|||
PlayerSettings({
|
||||
required this.enableTunneling,
|
||||
required this.skipTypes,
|
||||
this.themeColor,
|
||||
required this.skipForward,
|
||||
required this.skipBackward,
|
||||
});
|
||||
|
|
@ -55,6 +56,8 @@ class PlayerSettings {
|
|||
|
||||
Map<SegmentType, SegmentSkip> skipTypes;
|
||||
|
||||
int? themeColor;
|
||||
|
||||
int skipForward;
|
||||
|
||||
int skipBackward;
|
||||
|
|
@ -63,6 +66,7 @@ class PlayerSettings {
|
|||
return <Object?>[
|
||||
enableTunneling,
|
||||
skipTypes,
|
||||
themeColor,
|
||||
skipForward,
|
||||
skipBackward,
|
||||
];
|
||||
|
|
@ -76,8 +80,9 @@ class PlayerSettings {
|
|||
return PlayerSettings(
|
||||
enableTunneling: result[0]! as bool,
|
||||
skipTypes: (result[1] as Map<Object?, Object?>?)!.cast<SegmentType, SegmentSkip>(),
|
||||
skipForward: result[2]! as int,
|
||||
skipBackward: result[3]! as int,
|
||||
themeColor: result[2] as int?,
|
||||
skipForward: result[3]! as int,
|
||||
skipBackward: result[4]! as int,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue