Is it possible to keep the cache alive? #224
Unanswered
luthianovolters
asked this question in
Q&A
Replies: 1 comment
-
First, I'm learning (and I my language is portuguese, so, try not note my english faults). I solve that using flutter_cache_manager. I load the PDF into cache_manager and get the PDF stored into the PDFRX.
And then, use pdfFileG to show the file
With this, the cache is stored in the flutter_cache_manager and can be retrieved in any screen. Its just needed open an cache instance. As suggestion, the developers @espresso3389 maybe add a storage cache function / controllers. This will be perfect. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, thanks for this awesome package, it's helping me a lot!
I am using this package on flutter web to display an uploaded PDF file with
Uint8List
on a new screen, but it always clears the cache after the first build ofPdfViewer.data()
.Note 1: it only clears the
Uint8List
in the class and in my custom controller with Provider, but the string name is kept in both;Note 2: it only occurs with
PdfViewer
;Image.memory()
does not clear the data;Context of use: I'm looking for a solution to navigate to a new screen to display the PDF file and then return to the previous page so the user can save the file.
Need your help @espresso3389
Beta Was this translation helpful? Give feedback.
All reactions