mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-28 05:49:31 +00:00
refactor: update default speed options for player settings
This commit is contained in:
parent
ce74ead2b3
commit
4c5dc53169
3 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ class PlayerSettings with _$PlayerSettings {
|
|||
ExpandedPlayerSettings expandedPlayerSettings,
|
||||
@Default(1) double preferredDefaultVolume,
|
||||
@Default(1) double preferredDefaultSpeed,
|
||||
@Default([0.75, 1, 1.25, 1.5, 1.75, 2]) List<double> speedOptions,
|
||||
@Default([1, 1.25, 1.5, 1.75, 2]) List<double> speedOptions,
|
||||
@Default(0.05) double speedIncrement,
|
||||
@Default(0.1) double minSpeed,
|
||||
@Default(4) double maxSpeed,
|
||||
|
|
|
|||
|
|
@ -838,7 +838,7 @@ class _$PlayerSettingsImpl implements _PlayerSettings {
|
|||
this.expandedPlayerSettings = const ExpandedPlayerSettings(),
|
||||
this.preferredDefaultVolume = 1,
|
||||
this.preferredDefaultSpeed = 1,
|
||||
final List<double> speedOptions = const [0.75, 1, 1.25, 1.5, 1.75, 2],
|
||||
final List<double> speedOptions = const [1, 1.25, 1.5, 1.75, 2],
|
||||
this.speedIncrement = 0.05,
|
||||
this.minSpeed = 0.1,
|
||||
this.maxSpeed = 4,
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ _$PlayerSettingsImpl _$$PlayerSettingsImplFromJson(Map<String, dynamic> json) =>
|
|||
speedOptions: (json['speedOptions'] as List<dynamic>?)
|
||||
?.map((e) => (e as num).toDouble())
|
||||
.toList() ??
|
||||
const [0.75, 1, 1.25, 1.5, 1.75, 2],
|
||||
const [1, 1.25, 1.5, 1.75, 2],
|
||||
speedIncrement: (json['speedIncrement'] as num?)?.toDouble() ?? 0.05,
|
||||
minSpeed: (json['minSpeed'] as num?)?.toDouble() ?? 0.1,
|
||||
maxSpeed: (json['maxSpeed'] as num?)?.toDouble() ?? 4,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue