diff --git a/lib/view_book.dart b/lib/view_book.dart index 44d9584..8e49059 100644 --- a/lib/view_book.dart +++ b/lib/view_book.dart @@ -58,12 +58,14 @@ class _ViewBookState extends State { void givePageNumberF(pageno, Book b) async { setState(() { _actualPageNumber++; + resetInitPage(widget.book); }); } void givePageNumberB(pageno, Book b) async { setState(() { _actualPageNumber--; + resetInitPage(widget.book); }); } @@ -249,6 +251,7 @@ class _ViewBookState extends State { }, onPageChanged: (page) { setState(() { + resetInitPage(widget.book); _actualPageNumber = page; }); },