ソースを参照

Dartfmt

flutter-beta
Julian Steenbakker 5年前
コミット
742568c50a
この署名に対応する既知のキーがデータベースに存在しません 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.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


読み込み中…
キャンセル
保存