Julian Steenbakker преди 5 години
родител
ревизия
742568c50a
No known key found for this signature in database GPG ключ ID: 16E437C7A3D94250
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. +2
    -4
      lib/src/qr_scanner_overlay_shape.dart

+ 2
- 4
lib/src/qr_scanner_overlay_shape.dart Целия файл

@@ -11,7 +11,7 @@ class QrScannerOverlayShape extends ShapeBorder {
this.borderLength = 40, this.borderLength = 40,
this.cutOutSize = 250, this.cutOutSize = 250,
this.cutOutBottomOffset = 0, this.cutOutBottomOffset = 0,
}) : assert( borderLength <= cutOutSize / 2 + borderWidth * 2,
}) : assert(borderLength <= cutOutSize / 2 + borderWidth * 2,
"Border can't be larger than ${cutOutSize / 2 + borderWidth * 2}"); "Border can't be larger than ${cutOutSize / 2 + borderWidth * 2}");


final Color borderColor; final Color borderColor;
@@ -65,9 +65,7 @@ class QrScannerOverlayShape extends ShapeBorder {
final _borderLength = borderLength > cutOutSize / 2 + borderWidth * 2 final _borderLength = borderLength > cutOutSize / 2 + borderWidth * 2
? borderWidthSize / 2 ? borderWidthSize / 2
: borderLength; : borderLength;
final _cutOutSize = cutOutSize < width
? cutOutSize
: width - borderOffset;
final _cutOutSize = cutOutSize < width ? cutOutSize : width - borderOffset;


final backgroundPaint = Paint() final backgroundPaint = Paint()
..color = overlayColor ..color = overlayColor


Зареждане…
Отказ
Запис