问题描述
我正在开发扫描仪应用程序,我们在其中扫描包含 QR 和条形码的标签如何在扫描时保存扫描的 QR 标签图像。 扫描仪工作正常,但我想保存扫描的 QR 图像标签。如何做到这一点? 我正在使用库 -> Flutter_barcode_scanner:
// Thats the code
Future<void> scanBarcodenormal() async {
String barcodeScanRes;
try {
barcodeScanRes = await FlutterBarcodeScanner.scanBarcode(
"#ff6666","Cancel",true,ScanMode.BARCODE);
Navigator.push(context,MaterialPageRoute(builder: (context)=>BarcodeScanResult(result: _scanBarcode,)));
// Here i want to store that plastic tag image and show on BarcodeResult Page
} on PlatformException {
barcodeScanRes = 'Failed to get platform version.';
}
if (!mounted) return;
setState(() {
_scanBarcode = barcodeScanRes;
});
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)