Skip to content

Commit 2931bb8

Browse files
authored
Merge pull request #1 from Fernandomr88/patch-1
wrongfully showing Goto next page even at last page
2 parents f9f04d4 + a5d32e6 commit 2931bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class _PdfViewPageState extends State<PdfViewPage> {
181181
},
182182
)
183183
: Offstage(),
184-
_currentPage < _totalPages
184+
_currentPage+1 < _totalPages
185185
? FloatingActionButton.extended(
186186
backgroundColor: Colors.green,
187187
label: Text("Go to ${_currentPage + 1}"),

0 commit comments

Comments
 (0)