From 4c6a7190026cc3b23d1d50d1d42a593d5f28e827 Mon Sep 17 00:00:00 2001 From: Namita Arya Date: Wed, 9 Feb 2022 17:41:46 +0530 Subject: [PATCH] fix lastread --- lib/view_book.dart | 3 +++ 1 file changed, 3 insertions(+) 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; }); },