Open mg7237 opened 4 years ago
Please review the issue and advise if this is really a defect or maybe I am doing something wrong. If its a defect then also its fine but if it is not a defect then please advise how to fix this problem.
please look to this issue because we use flutter_pdfview as a viewer https://github.com/endigo/flutter_pdfview/issues/74
Hello Abdelrahman,
Following up in regards to this issue. Please confirm if this is being looked into and what is the initial impression of the root cause and any potential solutions being considered.
Thanks, Manish
Describe the bug I have a Flutter application where I am placing the PDF widget as a Saffold body. The Scaffold header has a Widget which toggles between Light and Dark mode of the app. So the toggle is working perfectly for all Widgets on the page except flutter_chached_view pdf. On change of toggle switch, I toggle a boolean variable value which is assigned to night mode property i.e. PDF(nighMode: _boolToggle)
So the application code calls set state on change in bool value which toggles night mode for all widgets but PDF doesn't toggle between the two modes. The file remains in the mode when the PDF widget was initiated and rendered for the first time. The user needs to go back to the previous page, change the theme and then open the pdf again to view the pdf as per the updated theme. To Reproduce
Expected behaviour On change of nightMode boolean value, the PDF view should be updated to show as per the updated mode.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context NA