Przeglądaj źródła

Merge pull request #439 from OrangeSofter/fix_assert

Assert fixed
flutter-beta
Julian Steenbakker 4 lat temu
committed by GitHub
rodzic
commit
548b6677bb
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      lib/src/qr_scanner_overlay_shape.dart

+ 1
- 1
lib/src/qr_scanner_overlay_shape.dart Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz