mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Add option to show page number in reader settings
This commit is contained in:
@@ -372,7 +372,8 @@
|
|||||||
"Refresh": "刷新",
|
"Refresh": "刷新",
|
||||||
"Paging": "分页",
|
"Paging": "分页",
|
||||||
"Continuous": "连续",
|
"Continuous": "连续",
|
||||||
"Display mode of comic list": "漫画列表的显示模式"
|
"Display mode of comic list": "漫画列表的显示模式",
|
||||||
|
"Show Page Number": "显示页码"
|
||||||
},
|
},
|
||||||
"zh_TW": {
|
"zh_TW": {
|
||||||
"Home": "首頁",
|
"Home": "首頁",
|
||||||
@@ -747,6 +748,7 @@
|
|||||||
"Refresh": "刷新",
|
"Refresh": "刷新",
|
||||||
"Paging": "分頁",
|
"Paging": "分頁",
|
||||||
"Continuous": "連續",
|
"Continuous": "連續",
|
||||||
"Display mode of comic list": "漫畫列表的顯示模式"
|
"Display mode of comic list": "漫畫列表的顯示模式",
|
||||||
|
"Show Page Number": "顯示頁碼"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,7 @@ class Settings with ChangeNotifier {
|
|||||||
'followUpdatesFolder': null,
|
'followUpdatesFolder': null,
|
||||||
'initialPage': '0',
|
'initialPage': '0',
|
||||||
'comicListDisplayMode': 'paging', // paging, continuous
|
'comicListDisplayMode': 'paging', // paging, continuous
|
||||||
|
'showPageNumberInReader': true,
|
||||||
};
|
};
|
||||||
|
|
||||||
operator [](String key) {
|
operator [](String key) {
|
||||||
|
@@ -127,7 +127,8 @@ class _ReaderScaffoldState extends State<_ReaderScaffold> {
|
|||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
child: widget.child,
|
child: widget.child,
|
||||||
),
|
),
|
||||||
buildPageInfoText(),
|
if (appdata.settings['showPageNumberInReader'] == true)
|
||||||
|
buildPageInfoText(),
|
||||||
buildStatusInfo(),
|
buildStatusInfo(),
|
||||||
AnimatedPositioned(
|
AnimatedPositioned(
|
||||||
duration: const Duration(milliseconds: 180),
|
duration: const Duration(milliseconds: 180),
|
||||||
|
@@ -179,6 +179,13 @@ class _ReaderSettingsState extends State<ReaderSettings> {
|
|||||||
min: 1,
|
min: 1,
|
||||||
max: 16,
|
max: 16,
|
||||||
).toSliver(),
|
).toSliver(),
|
||||||
|
_SwitchSetting(
|
||||||
|
title: "Show Page Number".tl,
|
||||||
|
settingKey: "showPageNumberInReader",
|
||||||
|
onChanged: () {
|
||||||
|
widget.onChanged?.call("showPageNumberInReader");
|
||||||
|
},
|
||||||
|
).toSliver(),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user