Parcourir la source

Draw overlay based on rect position

flutter-beta
Dominik Spicher il y a 6 ans
committed by Dominik Spicher
Parent
révision
dd91ed9acb
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      lib/src/qr_scanner_overlay_shape.dart

+ 2
- 2
lib/src/qr_scanner_overlay_shape.dart Voir le fichier

@@ -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,
);


Chargement…
Annuler
Enregistrer