|
|
|
@ -74,7 +74,7 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
|
|
|
|
|
if (total > 0) { |
|
|
|
|
print('page change: $page/$total'); |
|
|
|
|
setState(() { |
|
|
|
|
currentPage = page + 1; |
|
|
|
|
currentPage = page; |
|
|
|
|
pageTotal = total; |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
@ -98,7 +98,7 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
|
|
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
|
bottom: 45, |
|
|
|
|
child: Center( |
|
|
|
|
child: Text("${currentPage}/${pageTotal}", |
|
|
|
|
child: Text("${currentPage + 1}/${(pageTotal > 0)?pageTotal:1}", |
|
|
|
|
style: TextStyle(color: Colors.white, fontSize: 16)), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -147,7 +147,7 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
|
|
|
|
|
if (total > 0) { |
|
|
|
|
print('page change: $page/$total'); |
|
|
|
|
setState(() { |
|
|
|
|
currentPage = page + 1; |
|
|
|
|
currentPage = page; |
|
|
|
|
pageTotal = total; |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
@ -169,7 +169,7 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
|
|
|
|
|
bottom: 45, |
|
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
|
child: Center( |
|
|
|
|
child: Text("${currentPage}/${pageTotal}", |
|
|
|
|
child: Text("${currentPage + 1}/${(pageTotal > 0)?pageTotal:1}", |
|
|
|
|
style: TextStyle(color: Colors.black, fontSize: 16)), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|