Skip to content

Commit

Permalink
v0.3.5 (#97)
Browse files Browse the repository at this point in the history
* reader mode not changing from quik settings

* update app version

* fixed missing sources bug in backup restore popup
  • Loading branch information
DattatreyaReddy authored Dec 19, 2022
1 parent cfc3b4c commit b37e5e5
Show file tree
Hide file tree
Showing 17 changed files with 482 additions and 241 deletions.
1 change: 1 addition & 0 deletions assets/locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"library": "Library",
"loading": "Loading!",
"manga": "Manga",
"mangaMissingSources": "Manga Missing Sources",
"mangaSearch": "Search manga..",
"MangaSort": {
"alphabetical": "Alphabetical",
Expand Down
9 changes: 0 additions & 9 deletions lib/src/constants/enum.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,3 @@ enum SourceType {
final IconData icon;
final IconData selectedIcon;
}

enum ChapterMeta {
invertTap("flutter_readerNavigationLayoutInvert"),
readerNavigationLayout("flutter_readerNavigationLayout"),
readerMode("flutter_readerMode");

const ChapterMeta(this.key);
final String key;
}
24 changes: 23 additions & 1 deletion lib/src/features/manga_book/domain/manga/manga_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,30 @@ class Manga with _$Manga {
int? lastFetchedAt,
int? chaptersLastFetchedAt,
String? url,
Map<String, dynamic>? meta,
MangaMeta? meta,
}) = _Manga;

factory Manga.fromJson(Map<String, dynamic> json) => _$MangaFromJson(json);
}

@freezed
class MangaMeta with _$MangaMeta {
factory MangaMeta({
@JsonKey(name: "flutter_readerNavigationLayoutInvert") bool? invertTap,
@JsonKey(name: "flutter_readerNavigationLayout")
ReaderNavigationLayout? readerNavigationLayout,
@JsonKey(name: "flutter_readerMode") ReaderMode? readerMode,
}) = _MangaMeta;

factory MangaMeta.fromJson(Map<String, dynamic> json) =>
_$MangaMetaFromJson(json);
}

enum MangaMetaKeys {
invertTap("flutter_readerNavigationLayoutInvert"),
readerNavigationLayout("flutter_readerNavigationLayout"),
readerMode("flutter_readerMode");

const MangaMetaKeys(this.key);
final String key;
}
Loading

0 comments on commit b37e5e5

Please sign in to comment.