Skip to content

Commit

Permalink
fix lastread
Browse files Browse the repository at this point in the history
  • Loading branch information
namitaarya committed Feb 9, 2022
1 parent 344a81b commit 4c6a719
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/view_book.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ class _ViewBookState extends State<ViewBook> {
void givePageNumberF(pageno, Book b) async {
setState(() {
_actualPageNumber++;
resetInitPage(widget.book);
});
}

void givePageNumberB(pageno, Book b) async {
setState(() {
_actualPageNumber--;
resetInitPage(widget.book);
});
}

Expand Down Expand Up @@ -249,6 +251,7 @@ class _ViewBookState extends State<ViewBook> {
},
onPageChanged: (page) {
setState(() {
resetInitPage(widget.book);
_actualPageNumber = page;
});
},
Expand Down

0 comments on commit 4c6a719

Please sign in to comment.