diff --git a/lib/src/qr_scanner_overlay_shape.dart b/lib/src/qr_scanner_overlay_shape.dart index db42605..67c8439 100644 --- a/lib/src/qr_scanner_overlay_shape.dart +++ b/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, );