This commit is contained in:
kodjomoustapha 2023-12-05 18:20:38 +01:00
parent 0c9de22c94
commit a4663ba55d
2 changed files with 10 additions and 2 deletions

View file

@ -203,7 +203,8 @@ class Settings {
this.backupFrequencyOptions,
this.autoBackupLocation,
this.startDatebackup,
this.usePageTapZones = true});
this.usePageTapZones = true,
this.autoScrollPages});
Settings.fromJson(Map<String, dynamic> json) {
animatePageTransitions = json['animatePageTransitions'];
@ -309,6 +310,11 @@ class Settings {
sortLibraryManga = json['sortLibraryManga'] != null
? SortLibraryManga.fromJson(json['sortLibraryManga'])
: null;
if (json['sortChapterList'] != null) {
autoScrollPages = (json['autoScrollPages'] as List)
.map((e) => AutoScrollPages.fromJson(e))
.toList();
}
themeIsDark = json['themeIsDark'];
userAgent = json['userAgent'];
backupFrequency = json['backupFrequency'];
@ -390,6 +396,8 @@ class Settings {
'showPagesNumber': showPagesNumber,
if (sortChapterList != null)
'sortChapterList': sortChapterList!.map((v) => v.toJson()).toList(),
if (sortChapterList != null)
'autoScrollPages': autoScrollPages!.map((v) => v.toJson()).toList(),
'sortLibraryAnime': sortLibraryAnime,
if (sortLibraryManga != null)
'sortLibraryManga': sortLibraryManga!.toJson(),

View file

@ -1,7 +1,7 @@
name: mangayomi
description: Free and open source manga reader and anime streaming cross-plateform app inspired by Tachiyomi.
publish_to: 'none'
version: 0.1.1+33
version: 0.1.2+34
environment:
sdk: '>=3.2.0 <4.0.0'