Ver a proveniência

Merge pull request #439 from OrangeSofter/fix_assert

Assert fixed
flutter-beta
Julian Steenbakker há 4 anos
committed by GitHub
ascendente
cometimento
548b6677bb
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      lib/src/qr_scanner_overlay_shape.dart

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

@@ -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');
}


Carregando…
Cancelar
Guardar