소스 검색

Merge pull request #439 from OrangeSofter/fix_assert

Assert fixed
flutter-beta
Julian Steenbakker 4 년 전
committed by GitHub
부모
커밋
548b6677bb
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      lib/src/qr_scanner_overlay_shape.dart

+ 1
- 1
lib/src/qr_scanner_overlay_shape.dart 파일 보기

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


불러오는 중...
취소
저장