dart_pdf
dart_pdf copied to clipboard
hang when data is too large
When I load 2000 rows with 5 columns of data, my Flutter app hangs for seconds.
can we use compute for forloop functionality
kind of any indication that not hang the app and show users that the event is in process
When you solve please inform us . Good luck .
@bksbora Ok
I haven't tried it before but this is the solution that came to my mind. Can you create a addRowFunction and create your proccesed data before open pdf then pass to pdf ? like there just pass the tableRowList :
List<pw.TableRow> tableRowList = [];
if (guillotines[sistemNo].ustclasicGiyotinYanKasaProfilKullanilacakMiktar != 0) {
addRowFuction(
guillotines[sistemNo].ustclasicGiyotinYanKasaProfilRef,
'ustclasicGiyotinYanKasaProfilRef',
);
}