Browse Source

fixed large image detection issue

pull/76/head
Khoren Markosyan 2 years ago
parent
commit
065730e63f
  1. 2
      example/lib/main.dart
  2. 4
      lib/src/models/params.dart
  3. 2
      zxscanner/pubspec.lock
  4. 2
      zxscanner/pubspec.yaml

2
example/lib/main.dart

@ -82,7 +82,7 @@ class _DemoPageState extends State<DemoPage> {
onScanFailure: _onScanFailure, onScanFailure: _onScanFailure,
onMultiScan: _onMultiScanSuccess, onMultiScan: _onMultiScanSuccess,
onMultiScanFailure: _onMultiScanFailure, onMultiScanFailure: _onMultiScanFailure,
isMultiScan: true, isMultiScan: false,
// showScannerOverlay: false, // showScannerOverlay: false,
// scanDelay: const Duration(milliseconds: 0), // scanDelay: const Duration(milliseconds: 0),
// tryInverted: true, // tryInverted: true,

4
lib/src/models/params.dart

@ -11,7 +11,7 @@ class DecodeParams {
this.tryHarder = false, this.tryHarder = false,
this.tryRotate = true, this.tryRotate = true,
this.tryInverted = false, this.tryInverted = false,
this.maxSize = 512, this.maxSize = 768,
this.isMultiScan = false, this.isMultiScan = false,
}); });
@ -33,7 +33,7 @@ class DecodeParams {
// Try to detect inverted code // Try to detect inverted code
bool tryInverted; 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; int maxSize;
// Whether to scan multiple barcodes // Whether to scan multiple barcodes

2
zxscanner/pubspec.lock

@ -321,7 +321,7 @@ packages:
name: flutter_zxing name: flutter_zxing
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0-beta.4" version: "0.10.0"
font_awesome_flutter: font_awesome_flutter:
dependency: "direct main" dependency: "direct main"
description: description:

2
zxscanner/pubspec.yaml

@ -17,7 +17,7 @@ dependencies:
sdk: flutter sdk: flutter
flutter_markdown: ^0.6.13 flutter_markdown: ^0.6.13
flutter_mobx: ^2.0.6 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 font_awesome_flutter: ^10.3.0
hive: ^2.2.3 hive: ^2.2.3
hive_flutter: ^1.1.0 hive_flutter: ^1.1.0

Loading…
Cancel
Save