From 742568c50ad86b4e936ee11a5f42723bbca5ad44 Mon Sep 17 00:00:00 2001 From: Julian Steenbakker Date: Sun, 14 Mar 2021 19:50:04 +0100 Subject: [PATCH] Dartfmt --- lib/src/qr_scanner_overlay_shape.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/src/qr_scanner_overlay_shape.dart b/lib/src/qr_scanner_overlay_shape.dart index dcb5906..1b11dfb 100644 --- a/lib/src/qr_scanner_overlay_shape.dart +++ b/lib/src/qr_scanner_overlay_shape.dart @@ -11,7 +11,7 @@ class QrScannerOverlayShape extends ShapeBorder { this.borderLength = 40, this.cutOutSize = 250, 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}"); final Color borderColor; @@ -65,9 +65,7 @@ class QrScannerOverlayShape extends ShapeBorder { final _borderLength = borderLength > cutOutSize / 2 + borderWidth * 2 ? borderWidthSize / 2 : borderLength; - final _cutOutSize = cutOutSize < width - ? cutOutSize - : width - borderOffset; + final _cutOutSize = cutOutSize < width ? cutOutSize : width - borderOffset; final backgroundPaint = Paint() ..color = overlayColor