Ver a proveniência

Fixed null-pointer when no overlay set on iOS

flutter-beta
Julian Steenbakker há 5 anos
ascendente
cometimento
7278d37fcb
1 ficheiros alterados com 2 adições e 2 eliminações
  1. +2
    -2
      lib/src/qr_code_scanner.dart

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

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


Carregando…
Cancelar
Guardar