Giter Site home page Giter Site logo

Comments (7)

SergeShkurko avatar SergeShkurko commented on June 13, 2024

and how many pages do you have in the document?
in 3.6.0 problem with errorBuilder fixed
can you copy the error code?

from packages.flutter.

copypasteearth avatar copypasteearth commented on June 13, 2024

Im having the same problem

from packages.flutter.

Jonathan-Harty avatar Jonathan-Harty commented on June 13, 2024

I am running into the same problem with the animateToPage method, it seems that the scroll controller is not getting attached to the scroll view when any jumping around pages is done.
exception

from packages.flutter.

Jonathan-Harty avatar Jonathan-Harty commented on June 13, 2024

It seems that the _positions list on the _pageController on the _pdfController does not get items until after the onDocumentLoaded function is called leading to the _positions.isNotEmpty assertion to fail.

from packages.flutter.

BrucesStuff avatar BrucesStuff commented on June 13, 2024

According to the API, It seems to me that setting the initialPage parameter of the PdfController to >1 should cause the PDF to open at that page.

However this parameter seems to be ignored.

Looking into the code, I see that in the PdfController's _attach() method the initialPage is passed to _reInitPageController(), but not passed into _loadDocument(), which then calls _reInitPageController() again with an initialPage of 1 from its default parameter.

from packages.flutter.

Jonathan-Harty avatar Jonathan-Harty commented on June 13, 2024

I have already made a pull request that should fix the initialPage problem

from packages.flutter.

rahulserver avatar rahulserver commented on June 13, 2024

Yes i too found the same issue like @BrucesStuff commented. The initialPage params seems to be ignored.

from packages.flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.