diff --git a/example/lib/main.dart b/example/lib/main.dart index 38b2efc..7e24765 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -82,7 +82,7 @@ class _DemoPageState extends State { onScanFailure: _onScanFailure, onMultiScan: _onMultiScanSuccess, onMultiScanFailure: _onMultiScanFailure, - isMultiScan: true, + isMultiScan: false, // showScannerOverlay: false, // scanDelay: const Duration(milliseconds: 0), // tryInverted: true, diff --git a/lib/src/models/params.dart b/lib/src/models/params.dart index 1450084..2a668a0 100644 --- a/lib/src/models/params.dart +++ b/lib/src/models/params.dart @@ -11,7 +11,7 @@ class DecodeParams { this.tryHarder = false, this.tryRotate = true, this.tryInverted = false, - this.maxSize = 512, + this.maxSize = 768, this.isMultiScan = false, }); @@ -33,7 +33,7 @@ class DecodeParams { // Try to detect inverted code bool tryInverted; - // Resize the image to a smaller size before scanning to improve performance + // Resize the image to a smaller size before scanning to improve performance. Default is 768. int maxSize; // Whether to scan multiple barcodes diff --git a/zxscanner/pubspec.lock b/zxscanner/pubspec.lock index 3691e9b..4092141 100644 --- a/zxscanner/pubspec.lock +++ b/zxscanner/pubspec.lock @@ -321,7 +321,7 @@ packages: name: flutter_zxing url: "https://pub.dartlang.org" source: hosted - version: "1.0.0-beta.4" + version: "0.10.0" font_awesome_flutter: dependency: "direct main" description: diff --git a/zxscanner/pubspec.yaml b/zxscanner/pubspec.yaml index aa535cc..fab1dbb 100644 --- a/zxscanner/pubspec.yaml +++ b/zxscanner/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: sdk: flutter flutter_markdown: ^0.6.13 flutter_mobx: ^2.0.6 - flutter_zxing: 1.0.0-beta.4 + flutter_zxing: #1.0.0-beta.6 font_awesome_flutter: ^10.3.0 hive: ^2.2.3 hive_flutter: ^1.1.0