I have upgraded to Flutter 3.19.4 from 3.16.9 and the combo box in PDF Viewer now causes rebuilds of the entire pdf when pressed.
See a minimally reproducible example here: https://github.com/isenbj/Syncfusion_slow_pdf_creation/blob/master/lib/main.dart
When Line 51 is commented out, pressing the combo box field causes no rebuilds.
Once the line is not commented out, pressing the line will cause multiple rebuilds. This is an issue because my pdf takes a second or two tow build and has many combo boxes. This is a poor user experience.
commented out, no prints.
after un commenting line
Hi Jeremy Isenburg,
We use the DropdownButton widget to render the Combo box form field in the SfPdfViewer widget.
The reported issue can be replicated without the SfPdfViewer widget itself. Please find the minimal code snippet to replicate the issue without using the SfPdfViewer widget and using only the DropDownButton widget.
We suspect that this is the behavior of Flutter framework.
I looked into the flutter issues in git after you mention it is with the dropdown button.
https://github.com/flutter/flutter/issues/143709
Looks like this is intended new behavior, and I will have to work around it. For future users, see comments in the github post about workarounds.
Thanks.
Hi Jeremy Isenburg,
Thank you for sharing this information.