create icons in flutter pdf?

Solution 1:

check whether PdfGoogleFonts.materialIcons() is added under page theme:

theme: pw.ThemeData.withFont(
  base: await PdfGoogleFonts.openSansRegular(),
  bold: await PdfGoogleFonts.openSansBold(),
  icons: await PdfGoogleFonts.materialIcons(), // this line
)