diff --git a/lib/ui/views/ib/ib_page_view.dart b/lib/ui/views/ib/ib_page_view.dart index 911cb90f..0316315c 100644 --- a/lib/ui/views/ib/ib_page_view.dart +++ b/lib/ui/views/ib/ib_page_view.dart @@ -356,7 +356,13 @@ class _IbPageViewState extends State { heroTag: 'previousPage', mini: true, backgroundColor: Theme.of(context).primaryIconTheme.color, - onPressed: () => widget.setPage(widget.chapter.prev), + onPressed: () { + //If FAB are not visible do not do anything. + if (!_isFabsVisible) { + return; + } + widget.setPage(widget.chapter.prev); + }, child: const Icon( Icons.arrow_back_rounded, color: IbTheme.primaryColor, @@ -379,7 +385,13 @@ class _IbPageViewState extends State { heroTag: 'nextPage', mini: true, backgroundColor: Theme.of(context).primaryIconTheme.color, - onPressed: () => widget.setPage(widget.chapter.next), + onPressed: () { + //If FAB are not visible do not do anything. + if (!_isFabsVisible) { + return; + } + widget.setPage(widget.chapter.next); + }, child: const Icon( Icons.arrow_forward_rounded, color: IbTheme.primaryColor,