Skip to content

Commit 8c28a95

Browse files
authored
Merge pull request #12 from mohesu/suggestions
UI Changes
2 parents 2d859a5 + a668ddc commit 8c28a95

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/src/ai_barcode_scanner.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ class AiBarcodeScanner extends StatefulWidget {
112112
this.controller,
113113
this.onDetect,
114114
this.borderColor = Colors.white,
115-
this.borderWidth = 10,
115+
this.borderWidth = 8,
116116
this.overlayColor = const Color.fromRGBO(0, 0, 0, 80),
117-
this.borderRadius = 10,
118-
this.borderLength = 30,
117+
this.borderRadius = 8,
118+
this.borderLength = 36,
119119
this.cutOutSize = 300,
120120
this.cutOutWidth,
121121
this.cutOutHeight,
@@ -196,7 +196,7 @@ class _AiBarcodeScannerState extends State<AiBarcodeScanner> {
196196
HapticFeedback.mediumImpact();
197197
}
198198
final String code = barcode.rawValue!;
199-
debugPrint('Barcode found => $code');
199+
debugPrint('Barcode rawValue => $code');
200200
widget.onScan(code);
201201
setState(() {});
202202
if (widget.canPop) {

lib/src/overlay.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import 'package:flutter/material.dart';
77
class OverlayShape extends ShapeBorder {
88
OverlayShape({
99
this.borderColor = Colors.red,
10-
this.borderWidth = 3.0,
10+
this.borderWidth = 4.0,
1111
this.overlayColor = const Color.fromRGBO(0, 0, 0, 80),
1212
this.borderRadius = 0,
13-
this.borderLength = 40,
13+
this.borderLength = 42,
1414
double? cutOutSize,
1515
double? cutOutWidth,
1616
double? cutOutHeight,

0 commit comments

Comments
 (0)