Przeglądaj źródła

Field cutOutSize changed to cutOutWidth and cutOutHeight

flutter-beta
Tihomirov 4 lat temu
rodzic
commit
471c4533e6
1 zmienionych plików z 4 dodań i 3 usunięć
  1. +4
    -3
      lib/src/qr_scanner_overlay_shape.dart

+ 4
- 3
lib/src/qr_scanner_overlay_shape.dart Wyświetl plik

@@ -9,9 +9,9 @@ class QrScannerOverlayShape extends ShapeBorder {
this.overlayColor = const Color.fromRGBO(0, 0, 0, 80), this.overlayColor = const Color.fromRGBO(0, 0, 0, 80),
this.borderRadius = 0, this.borderRadius = 0,
this.borderLength = 40, this.borderLength = 40,
this.cutOutSize = 250,
double cutOutSize = 250,
this.cutOutBottomOffset = 0, this.cutOutBottomOffset = 0,
}) : assert(borderLength <= cutOutSize / 2 + borderWidth * 2,
}) : cutOutWidth = cutOutSize, cutOutHeight = cutOutSize, 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;
@@ -19,7 +19,8 @@ class QrScannerOverlayShape extends ShapeBorder {
final Color overlayColor; final Color overlayColor;
final double borderRadius; final double borderRadius;
final double borderLength; final double borderLength;
final double cutOutSize;
final double cutOutWidth;
final double cutOutHeight;
final double cutOutBottomOffset; final double cutOutBottomOffset;


@override @override


Ładowanie…
Anuluj
Zapisz