history page, comic menu

This commit is contained in:
nyne
2024-10-09 17:09:28 +08:00
parent 90b9265ca0
commit b68d52dfd7
10 changed files with 300 additions and 91 deletions

View File

@@ -178,26 +178,26 @@ class _ReaderGestureDetectorState extends State<_ReaderGestureDetector> {
}
void onSecondaryTapUp(Offset location) {
showDesktopMenu(
showMenuX(
context,
location,
[
DesktopMenuEntry(
MenuEntry(
text: "Settings".tl,
onClick: () {
context.readerScaffold.openSetting();
}),
DesktopMenuEntry(
MenuEntry(
text: "Chapters".tl,
onClick: () {
context.readerScaffold.openChapterDrawer();
}),
DesktopMenuEntry(
MenuEntry(
text: "Fullscreen".tl,
onClick: () {
context.reader.fullscreen();
}),
DesktopMenuEntry(
MenuEntry(
text: "Exit".tl,
onClick: () {
context.pop();

View File

@@ -102,6 +102,7 @@ class _ReaderState extends State<Reader> with _ReaderLocation, _ReaderWindow {
chapter = widget.initialChapter ?? 1;
mode = ReaderMode.fromKey(appdata.settings['readerMode']);
history = widget.history;
updateHistory();
super.initState();
}