We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe The jumpToPage method just doesn't work
To Reproduce Steps to reproduce the behavior:
import 'package:flutter/material.dart'; import 'package:native_pdf_view/native_pdf_view.dart'; void main() => runApp(MyApp()); class MyApp extends StatefulWidget { @override _MyAppState createState() => _MyAppState(); } class _MyAppState extends State<MyApp> { int _actualPageNumber = 1, _allPagesCount = 0; PdfController _pdfController; @override void initState() { _pdfController = PdfController( document: PdfDocument.openAsset('assets/sample.pdf'), ); super.initState(); } @override void dispose() { _pdfController.dispose(); super.dispose(); } @override Widget build(BuildContext context) => MaterialApp( theme: ThemeData(primaryColor: Colors.white), home: Scaffold( appBar: AppBar( title: Text('PdfView example'), actions: <Widget>[ Container( margin: EdgeInsets.only(right: 16), alignment: Alignment.center, child: Text( '$_actualPageNumber/$_allPagesCount', style: TextStyle(fontSize: 22), ), ), IconButton( icon: Icon(Icons.navigate_next), onPressed: () { _pdfController.jumpToPage(_pdfController.page + 1); }, ) ], ), body: PdfView( documentLoader: Center(child: CircularProgressIndicator()), pageLoader: Center(child: CircularProgressIndicator()), controller: _pdfController, onDocumentLoaded: (document) { setState(() { _allPagesCount = document.pagesCount; }); }, onPageChanged: (page) { setState(() { _actualPageNumber = page; }); }, ), ), ); }
Smartphone
Flutter doctor
The text was updated successfully, but these errors were encountered:
1871db4
thanks, fixed in 3.2.1
Sorry, something went wrong.
SergeShkurko
No branches or pull requests
Describe
The jumpToPage method just doesn't work
To Reproduce
Steps to reproduce the behavior:
Smartphone
Flutter doctor
![issue native pdf](https://user-images.githubusercontent.com/38996018/81852205-0818ca80-9531-11ea-88e5-23f17ce0e54e.png)
The text was updated successfully, but these errors were encountered: