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,
onMultiScan: _onMultiScanSuccess,
onMultiScanFailure: _onMultiScanFailure,
isMultiScan: true,
isMultiScan: false,
// showScannerOverlay: false,
// scanDelay: const Duration(milliseconds: 0),
// tryInverted: true,

4
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

2
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:

2
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

Loading…
Cancel
Save