소스 검색

Draw overlay based on rect position

flutter-beta
Dominik Spicher 6 년 전
committed by Dominik Spicher
부모
커밋
dd91ed9acb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      lib/src/qr_scanner_overlay_shape.dart

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

@@ -87,8 +87,8 @@ class QrScannerOverlayShape extends ShapeBorder {
..blendMode = BlendMode.dstOut;

final cutOutRect = Rect.fromLTWH(
width / 2 - _cutOutSize / 2 + borderOffset,
height / 2 - _cutOutSize / 2 + borderOffset,
rect.left + width / 2 - _cutOutSize / 2 + borderOffset,
rect.top + height / 2 - _cutOutSize / 2 + borderOffset,
_cutOutSize - borderOffset * 2,
_cutOutSize - borderOffset * 2,
);


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