Fix empty page.

Close #160
This commit is contained in:
2025-01-31 13:27:22 +08:00
parent e2c69d882f
commit 8c5dae1e59
2 changed files with 2 additions and 5 deletions

View File

@@ -98,8 +98,7 @@ class _ReaderState extends State<Reader> with _ReaderLocation, _ReaderWindow {
}
@override
int get maxPage =>
((images?.length ?? 1) + imagesPerPage - 1) ~/ imagesPerPage;
int get maxPage => ((images?.length ?? 1) / imagesPerPage).ceil();
ComicType get type => widget.type;