Explorar el Código

Merge pull request #439 from OrangeSofter/fix_assert

Assert fixed
flutter-beta
Julian Steenbakker hace 4 años
committed by GitHub
padre
commit
548b6677bb
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      lib/src/qr_scanner_overlay_shape.dart

+ 1
- 1
lib/src/qr_scanner_overlay_shape.dart Ver fichero

@@ -22,7 +22,7 @@ class QrScannerOverlayShape extends ShapeBorder {
"Border can't be larger than ${min(this.cutOutWidth, this.cutOutHeight) / 2 + borderWidth * 2}",
);
assert(
(cutOutSize != null && cutOutWidth == null && cutOutHeight == null) ||
(cutOutWidth == null && cutOutHeight == null) ||
(cutOutSize == null && cutOutWidth != null && cutOutHeight != null),
'Use only cutOutWidth and cutOutHeight or only cutOutSize');
}


Cargando…
Cancelar
Guardar