Skip to content
New issue

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

How to change the night mode during runtime ? #74

Closed
lordjoo opened this issue Jun 8, 2020 · 2 comments
Closed

How to change the night mode during runtime ? #74

lordjoo opened this issue Jun 8, 2020 · 2 comments

Comments

@lordjoo
Copy link

lordjoo commented Jun 8, 2020

Hi my friend your plug-in is so great
But I'm trying to make a button to trigger the night mode in my app but i cannot do this
I'm using statefull widget and setState to change the value of the variable responsible for the night mode but i found that the pdf is still using the initial value i gave

@razein97
Copy link

The Logical Steps you could take are:

  1. Get the current page of the pdf file.
  2. Then load the pdf file again with option night mode = true, the initial page as the current page that you got.

@raunak-many-ac
Copy link

Just do a setState() dude...its as simple as that...

@lordjoo lordjoo closed this as completed Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants