Julian Steenbakker

breaking: change allowDuplicates default to false

@@ -33,7 +33,7 @@ class _BarcodeScannerWithControllerState @@ -33,7 +33,7 @@ class _BarcodeScannerWithControllerState
33 MobileScanner( 33 MobileScanner(
34 controller: controller, 34 controller: controller,
35 fit: BoxFit.contain, 35 fit: BoxFit.contain,
36 - allowDuplicates: false, 36 + // allowDuplicates: true,
37 // controller: MobileScannerController( 37 // controller: MobileScannerController(
38 // torchEnabled: true, 38 // torchEnabled: true,
39 // facing: CameraFacing.front, 39 // facing: CameraFacing.front,
@@ -23,7 +23,7 @@ class _BarcodeScannerWithoutControllerState @@ -23,7 +23,7 @@ class _BarcodeScannerWithoutControllerState
23 children: [ 23 children: [
24 MobileScanner( 24 MobileScanner(
25 fit: BoxFit.contain, 25 fit: BoxFit.contain,
26 - allowDuplicates: false, 26 + // allowDuplicates: false,
27 onDetect: (barcode, args) { 27 onDetect: (barcode, args) {
28 setState(() { 28 setState(() {
29 this.barcode = barcode.rawValue; 29 this.barcode = barcode.rawValue;
@@ -33,7 +33,7 @@ class MobileScanner extends StatefulWidget { @@ -33,7 +33,7 @@ class MobileScanner extends StatefulWidget {
33 this.onDetect, 33 this.onDetect,
34 this.controller, 34 this.controller,
35 this.fit = BoxFit.cover, 35 this.fit = BoxFit.cover,
36 - this.allowDuplicates = true}) 36 + this.allowDuplicates = false})
37 : super(key: key); 37 : super(key: key);
38 38
39 @override 39 @override