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

Pdfview disappears after moving the app to background #52

Closed
BraveEvidence opened this issue Mar 18, 2020 · 1 comment
Closed

Pdfview disappears after moving the app to background #52

BraveEvidence opened this issue Mar 18, 2020 · 1 comment

Comments

@BraveEvidence
Copy link

I am displaying a pdf after downloading the pdf. The pdf screen has share button in whih i share the pdf url. Suppose the pdf is downloaded and it displays correctly but when i click share button and after choosing an option like whatsapp to share the url and after sharing when i come back to the app the pdf disappears but if i scroll through the screen the onPageChanged is method called but i cant see the pdf.

Following is my code snippet

return PDFView(
                          filePath:
                              patientReportDetailPreviewBloc.fileValue?.path,
                          autoSpacing: true,
                          pageSnap: true,
                          swipeHorizontal: false,
                          nightMode: false,
                          onRender: (_pages) {
                            _totalPages = _pages;
                            pdfReady = true;
                            patientReportDetailPreviewBloc
                                .changeProgress(false);
                          },
                          onViewCreated: (vc) {
                            _pdfViewController = vc;
                          },
                          onPageChanged: (page, total) {
                            debugPrint("Pritish");
                          },
                          onPageError: (page, e) {
                            debugPrint("Error $e");
                          },
                        );
@endigo
Copy link
Owner

endigo commented Jun 2, 2020

Related to #9

@endigo endigo closed this as completed Jun 2, 2020
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

2 participants