We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Request to customize loader in SfPdfViewer

Hi! I like this plugin, it makes coding much easier since I only have to write one line of code to fetch PDF files. However, I would like to request to customize the loader. Most specifically allow to hide or show it. This would be very helpful. Thank you.


3 Replies 1 reply marked as answer

DR Deepika Ravi Syncfusion Team April 14, 2023 06:08 PM UTC

Hi MAE KRISTINE VANNIRRIE SARMIENTO,

Please find the example application from the attachment for customize the progress bar color in SfPdfViewer . To know more about this, kindly check the following link,

https://pub.dev/documentation/syncfusion_flutter_core/latest/theme/SfPdfViewerThemeData-class.html

Kindly conform us you want to hide/show the loading progress bar indicator or page loading circular progress bar indicator.

Regards,

Deepika R


Marked as answer

MK MAE KRISTINE VANNIRRIE SARMIENTO April 15, 2023 02:42 PM UTC

Hi Deepika,

Thanks for the reply but I'd really be grateful if the team could just provide an option to remove a loading progress bar entirely. I tried using the SfPdfViewerThemeData to change the color but it is still there. It just hides away the progress bar but not its shell. Here's a photo:

flutter_01.png

If you could implement this request, I hope it can be done just SfPdfViewer class so it lessens the dependencies I need to install.

Thank you so much!



DR Deepika Ravi Syncfusion Team April 17, 2023 07:23 PM UTC

Hi MAE KRISTINE VANNIRRIE SARMIENTO,

Regarding SfPdfViewerThemeData:

We have checked the reported issue, and the color of the progress bar changed properly on our side. For your reference, we have attached the sample along with the output screen recording of the same. If you still reproduce the issue, kindly share the issue's replicating sample.

Regarding option to remove a loading progress bar:

If we remove the progress bar, SfPdfViewer will show a grey area in the viewport until the Pdf document is loaded, and it will not indicate whether the PDF document is loaded or not. Kindly share your complete purpose of the requirement.

Regards,

Deepika R


Attachment: Theme_af0ec3f0.zip

Loader.
Live Chat Icon For mobile
Up arrow icon