You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Project is running in --wasm and having issues when displaying an image as the pdf header i have followed the documentation on how to display an asset image in a pdf.
final img = await rootBundle.load('assets/images/logo.jpg');
final imageBytes = img.buffer.asUint8List();
Create an image from the ImageBytes
pw.Image image1 = pw.Image(pw.MemoryImage(imageBytes));
implement the image in a container
Project is running in
--wasm
and having issues when displaying an image as the pdf header i have followed the documentation on how to display an asset image in a pdf.final img = await rootBundle.load('assets/images/logo.jpg');
final imageBytes = img.buffer.asUint8List();
Create an image from the ImageBytes
pw.Image image1 = pw.Image(pw.MemoryImage(imageBytes));
implement the image in a container
pw.Container(
alignment: pw.Alignment.center,
height: 200,
child: image1,
);
works fine when using
html
as rendererThe text was updated successfully, but these errors were encountered: