pdf_test icon indicating copy to clipboard operation
pdf_test copied to clipboard

save file error

Open KamranKhanI opened this issue 4 years ago • 1 comments

file.writeAsBytesSync(pdf.save()); this line send error The argument type 'Future<Uint8List>' can't be assigned to the parameter type

KamranKhanI avatar Feb 17 '21 20:02 KamranKhanI

For pdf 2.0.0 or above versions savePdf() function has become a Future now. file.writeAsBytesSync(await pdf.save());

mujabrizvi avatar Mar 22 '21 17:03 mujabrizvi