getQrCodeByImagePath method

  1. @override
Future<List<String>> getQrCodeByImagePath(
  1. String path
)
override

从相机获取二维码并返回扫码信息 Get the qrcode data from photo album

Implementation

@override
Future<List<String>> getQrCodeByImagePath(String path) async {
  var methodChannel = const MethodChannel('plugins/qr_capture/method');
  var qrResult =
      await methodChannel.invokeMethod("getQrCodeByImagePath", path);
  return List<String>.from(qrResult);
}