-
Notifications
You must be signed in to change notification settings - Fork 918
Open
Labels
Description
Bug description
When opening a password-protected PDF file, the UI freezes noticeably after the password is entered.
This happens even with relatively small PDF files (~1–5MB).
Non-password-protected PDFs open smoothly.
Opening a password-protected PDF should not block the UI thread.
At minimum, the UI should remain responsive while the document is being decrypted and opened.
Steps to reproduce
- Prepare a PDF file protected with a password (e.g. 3–5MB)
- Open the PDF using PdfViewer
- Enter the correct password
- Observe that the UI freezes until the document is fully opened
Code sample
SfPdfViewer.file(
pdfFile.file,
key: _pdfViewerKey,
controller: _pdfViewerController,
password: _password,
canShowScrollHead: false,
canShowScrollStatus: false,
canShowTextSelectionMenu: false,
canShowPageLoadingIndicator: false,
)
Screenshots or Video
document_6228699286490585541.mp4
Stack Traces
Stack Traces
[Add the Stack Traces here]On which target platforms have you observed this bug?
Android
Flutter Doctor output
