Android 如何使用Flatter将二维码打印到蓝牙打印机?
如何使用Flatter将二维码打印到蓝牙打印机? 我正在使用这个软件包,但我不知道如何从我的唯一ID打印qrcode 我尝试了writeBytes方法,但我不知道如何将我唯一的ID字符串转换为Qr码进行打印Android 如何使用Flatter将二维码打印到蓝牙打印机?,android,flutter,Android,Flutter,如何使用Flatter将二维码打印到蓝牙打印机? 我正在使用这个软件包,但我不知道如何从我的唯一ID打印qrcode 我尝试了writeBytes方法,但我不知道如何将我唯一的ID字符串转换为Qr码进行打印 String foo = 'TEST'; List<int> bytes = utf8.encode(foo); bluetooth.writeBytes(bytes); stringfoo='TEST'; 列表字节=utf8.encode(foo); bluetooth.wr
String foo = 'TEST';
List<int> bytes = utf8.encode(foo);
bluetooth.writeBytes(bytes);
stringfoo='TEST';
列表字节=utf8.encode(foo);
bluetooth.writeBytes(字节);
我不知道从字符串到qrcode字节到蓝牙打印机的转换经常使用,看起来有一个非官方的。它用于扫描qrcode还是打印qrcode?两者都有!一切都与qr/barcodesoke有关。但是如何生成二维码呢?请给我举个例子。
ZXing
是常用的,看起来有一个非官方的。它是扫描qrcode还是打印qrcode?两者都有!一切都与qr/barcodesoke有关。但是如何生成二维码呢?请给我举个例子。