pdf_test
pdf_test copied to clipboard
save file error
file.writeAsBytesSync(pdf.save()); this line send error The argument type 'Future<Uint8List>' can't be assigned to the parameter type
For pdf 2.0.0 or above versions savePdf() function has become a Future now. file.writeAsBytesSync(await pdf.save());