Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何使用Flatter将二维码打印到蓝牙打印机?_Android_Flutter - Fatal编程技术网

Android 如何使用Flatter将二维码打印到蓝牙打印机?

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

如何使用Flatter将二维码打印到蓝牙打印机? 我正在使用这个软件包,但我不知道如何从我的唯一ID打印qrcode

我尝试了writeBytes方法,但我不知道如何将我唯一的ID字符串转换为Qr码进行打印

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有关。但是如何生成二维码呢?请给我举个例子。