Explorar el Código

Fixed null-pointer when no overlay set on iOS

flutter-beta
Julian Steenbakker hace 5 años
padre
commit
7278d37fcb
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      lib/src/qr_code_scanner.dart

+ 2
- 2
lib/src/qr_code_scanner.dart Ver fichero

@@ -294,8 +294,8 @@ class QRViewController {
await channel.invokeMethod('setDimensions', {
'width': renderBox.size.width,
'height': renderBox.size.height,
'scanArea': overlay.cutOutSize ?? 0,
'scanAreaOffset': overlay.cutOutBottomOffset ?? 0
'scanArea': overlay?.cutOutSize ?? 0,
'scanAreaOffset': overlay?.cutOutBottomOffset ?? 0
});
} on PlatformException catch (e) {
throw CameraException(e.code, e.message);


Cargando…
Cancelar
Guardar