Closed v2home closed 2 weeks ago
Describe the bug
I am coding under vscode with flutter dart tool,i try to display a preview page with plugin printing,but it showed nothing when i clicked preview button to run code belowing on android 14 platform:
Future previewDlg(BuildContext context) async { final doc = pw.Document(); doc.addPage(pw.Page( pageFormat: PdfPageFormat.a4, orientation: pw.PageOrientation.portrait, build: (pw.Context context) { return pw.Center(child: pw.Text('SPR Curve Area')); })); PdfPreview(build: (format) => doc.save()); }
alread resolved
Describe the bug
I am coding under vscode with flutter dart tool,i try to display a preview page with plugin printing,but it showed nothing when i clicked preview button to run code belowing on android 14 platform:
Future previewDlg(BuildContext context) async {
final doc = pw.Document();
doc.addPage(pw.Page(
pageFormat: PdfPageFormat.a4,
orientation: pw.PageOrientation.portrait,
build: (pw.Context context) {
return pw.Center(child: pw.Text('SPR Curve Area'));
}));
PdfPreview(build: (format) => doc.save());
}