How to generate QR Code on PDF file in flutter How to generate QR Code on PDF file in flutter dart dart

How to generate QR Code on PDF file in flutter


I had a problem showing that line "has no Unicode support..." to fix that i created a folder fonts on my project and added some true type fonts to it, then i created a pdf theme for the document like below:

var myTheme = ThemeData.withFont(      base: Font.ttf(await rootBundle.load("fonts/OpenSans-Regular.ttf")),      bold: Font.ttf(await rootBundle.load("fonts/OpenSans-Bold.ttf")),      italic: Font.ttf(await rootBundle.load("fonts/OpenSans-Italic.ttf")),      boldItalic:          Font.ttf(await rootBundle.load("fonts/OpenSans-BoldItalic.ttf")),    );

then i used the theme in the page of the document and the error was gone, like below:

Page(theme: myTheme,...)

I'm not sure if is the same case, but i think you should try.