Skip to content

Commit 7dba417

Browse files
committed
feat: Update barcode scanner options
Update the code to use the `detectionSpeed` property instead of `allowDuplicates` to control the detection of multiple scans in a short time.
1 parent 067281f commit 7dba417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Import `package:ai_barcode_scanner/ai_barcode_scanner.dart`, and use the widget
100100

101101
If you don't provide a controller, you can't control functions like the torch(flash) or switching camera.
102102

103-
If you don't set allowDuplicates to false, you can get multiple scans in a very short time, causing things like pop() to fire lots of times.
103+
If you don't set `detectionSpeed: DetectionSpeed.noDuplicates`, you can get multiple scans in a very short time.
104104

105105
```dart
106106
import 'package:ai_barcode_scanner/ai_barcode_scanner.dart';

0 commit comments

Comments
 (0)