mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-18 17:09:30 +00:00
feat: implement per book settings with player configuration and update methods
This commit is contained in:
parent
fd42ee2343
commit
e7dd4de515
19 changed files with 1030 additions and 20 deletions
17
lib/features/per_book_settings/models/book_settings.dart
Normal file
17
lib/features/per_book_settings/models/book_settings.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:vaani/features/per_book_settings/models/nullable_player_settings.dart';
|
||||
|
||||
part 'book_settings.freezed.dart';
|
||||
part 'book_settings.g.dart';
|
||||
|
||||
/// per book settings
|
||||
@freezed
|
||||
class BookSettings with _$BookSettings {
|
||||
const factory BookSettings({
|
||||
required String bookId,
|
||||
@Default(NullablePlayerSettings()) NullablePlayerSettings playerSettings,
|
||||
}) = _BookSettings;
|
||||
|
||||
factory BookSettings.fromJson(Map<String, dynamic> json) =>
|
||||
_$BookSettingsFromJson(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue