Julian Steenbakker

breaking: change allowDuplicates default to false

... ... @@ -33,7 +33,7 @@ class _BarcodeScannerWithControllerState
MobileScanner(
controller: controller,
fit: BoxFit.contain,
allowDuplicates: false,
// allowDuplicates: true,
// controller: MobileScannerController(
// torchEnabled: true,
// facing: CameraFacing.front,
... ...
... ... @@ -23,7 +23,7 @@ class _BarcodeScannerWithoutControllerState
children: [
MobileScanner(
fit: BoxFit.contain,
allowDuplicates: false,
// allowDuplicates: false,
onDetect: (barcode, args) {
setState(() {
this.barcode = barcode.rawValue;
... ...
... ... @@ -33,7 +33,7 @@ class MobileScanner extends StatefulWidget {
this.onDetect,
this.controller,
this.fit = BoxFit.cover,
this.allowDuplicates = true})
this.allowDuplicates = false})
: super(key: key);
@override
... ...