Git Product home page Git Product logo

qrcode_scanner's People

Contributors

adups-wangxing avatar bean5 avatar cybernetics354 avatar kazumi007 avatar kellvembarbosa avatar lucaslannes avatar merdandev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qrcode_scanner's Issues

Conflict with Firebase

Good afternoon

I installed firebase and QR_scan and by themselves they work very well, however when I put in the same application I get the error "Finished with error: Gradle task assembleDebug failed with exit code 1"

I already restarted the IDE and used Flutter Clean but the error persists
can you help me?

Follow the data

PUBSPEC
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
cloud_firestore: ^0.12.5
qrscan: ^0.2.17

ANDROID/build.gradle

buildscript {
ext.kotlin_version = '1.3.41'
repositories {
google()
jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.5.1'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath 'com.google.gms:google-services:4.3.2'
}

}

allprojects {
repositories {
google()
jcenter()
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}

ANDROID/APP/build.gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 28

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}

lintOptions {
    disable 'InvalidPackage'
}

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.example.flutter_app_firebase"
    minSdkVersion 16  //23
    targetSdkVersion 28
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    multiDexEnabled true
}

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
    }
}

}

flutter {
source '../..'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.firebase:firebase-analytics:17.2.0'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}

apply plugin: 'com.google.gms.google-services'

gradle.properties

org.gradle.jvmargs=-Xmx1536M

gradle-wrapper.properties
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-5.4.1-all.zip

APLICATION DART

import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'dart:async';
import 'package:qrscan/qrscan.dart' as scanner;

class Page_qrscan extends StatefulWidget {
@OverRide
_Page_qrscanState createState() => _Page_qrscanState();
}

class _Page_qrscanState extends State<Page_qrscan> {
String barcode = 'empty';

@OverRide
initState() {
super.initState();
}

@OverRide
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Qrcode Scanner Example'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(
width: 200, //300
height: 200, //300
child: Text('aqui tinha uma imagem'), // Image.memory(bytes),
),
Text('RESULT $barcode'),
RaisedButton(onPressed: _scan, child: Text("Scan")),
],
),
),
),
);
}

Future _scan() async {
String barcode = await scanner.scan();
setState(() => this.barcode = barcode);
_salva_firestore;
}
void _salva_firestore() async {
var myDatabase = Firestore.instance;

myDatabase.collection('base_qrcode').add({
  'qr_datacaptura': DateTime.now(),
  'qr_deviceid': 'deviceid',
  'qr_idusuario': 'userid',
  'qr_textoqr': barcode
});
print('item recorded');

}
}

Attribute application

 Attribute application@icon value=(@mipmap/launcher_icon) from AndroidManifest.xml:19:9-45
 is also present at [:qrscan] AndroidManifest.xml:22:9-43 value=(@mipmap/ic_launcher).

after adding the plugin I keep getting this error whenever I run my app...

Getting lost when user give-up to scanner

The simples action to give-up to scan a QR Code cause a big issue.
When the user taps on the back arrow or uses the Android back button, the Future function never returns.

The code bellow only reachs the second setState if the scan function actually scan something, other else even user canceling the scanner the function never returns;

setState(() {
     _scanning = true;
});
String qrCode = await scanner.scan();
if (qrCode != null)
    print(qrCode);
setState(() {
    _scanning = false;
});

Add Feature

Please make for landscape mode.

If scanner wrap in widget it will be awesome.

Conflict with Launch icon

I having this issue:

my_project/android/app/src/debug/AndroidManifest.xml:12:9-45 Error:
Attribute application@icon value=(@mipmap/launcher_icon) from AndroidManifest.xml:12:9-45
is also present at [:qrscan] AndroidManifest.xml:22:9-43 value=(@mipmap/ic_launcher).
Suggestion: add 'tools:replace="android:icon"' to element at AndroidManifest.xml:9:5-32:19 to override.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugManifest'.
    Manifest merger failed : Attribute application@icon value=(@mipmap/launcher_icon) from AndroidManifest.xml:12:9-45
    is also present at [:qrscan] AndroidManifest.xml:22:9-43 value=(@mipmap/ic_launcher).
    Suggestion: add 'tools:replace="android:icon"' to element at AndroidManifest.xml:9:5-32:19 to override.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s
Finished with error: Gradle task assembleDebug failed with exit code 1

My Doctor:

**** % flutter doctor -v

[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15.1 19B88, locale pt-BR)
    • Flutter version 1.9.1+hotfix.6 at /Users/******/SDK/flutter
    • Framework revision 68587a0916 (9 weeks ago), 2019-09-13 19:46:58 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/******/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B53
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 41.0.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (2 available)
    • Moto G 5S                 • ZF5222W2L8    • android-arm • Android 8.1.0 (API 27)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)

! Doctor found issues in 1 category.

Please help me because I really need to use this plugin.

can't run on IOS

Unable to determine Swift version for the following pods:

qrscan does not specify a Swift version and none of the targets Runner integrating it have the "SWIFT_VERSION" attributeset. Please contact the author or set the "SWIFT_VERSION" attribute in at least one of the targets that integrate this pod.

这个不支持iOS吧?

用真机测试,报没有插件,说明上不是写了支持iOS的吗?

[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method scan on channel qr_scan)
#0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:314:7)
<asynchronous suspension>
#1      scan (package:qrscan/qrscan.dart:13:47)
<asynchronous suspension>
#2      _HomePageState.testScanner (package:flutter_etracking/pages/home.dart:64:37)
<asynchronous suspension>
#3      _HomePageState.build.<anonymous closure> (package:flutter_etracking/pages/home.dart:52:15)
#4      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:654:14)
#5      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:729:32)
#6      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
#7      TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
#8      TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:275:7)
#9      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:455:9)
#10     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:75:13)
#11     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:102:11)
#12     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19)
#13     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
#14     GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
#15     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
#16     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
#17     _rootRunUnary (dart:async/zone.dart:1136:13)
#18     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#19     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#20     _invoke1 (dart:ui/hooks.dart:263:10)
#21     _dispatchPointerDataPacket (dart:ui/hooks.dart:172:5)

Execution failed for task ':app:checkDebugDuplicateClasses'.

java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.google.zxing.BarcodeFormat found in modules android-zxingLibrary-0.1.2-PRE-runtime.jar (com.github.leyan95:android-zxingLibrary:0.1.2-PRE) and core-3.3.3.jar (com.google.zxing:core:3.3.3)...

Unable to find activity 'com.shinow.qrscan.SecondActivity'

When calling String barcode = await scanner.scan(); I get this error:

PlatformException (PlatformException(error, Unable to find explicit activity class {hsi.alarm.prevozi/com.shinow.qrscan.SecondActivity}; have you declared this activity in your AndroidManifest.xml?, null))

When calling String cameraScanResult = await scanner.scanPath(imagePath); future newer returns result.

Using latest versions, AndroidX and added required user-permissions. What am I dooing wrong?

qrscan: 0.2.17 does not work with androidx

i performed flutter upgrade and androidx migration, for that i needed to update buid.gradle version from 3.2.1 as follows

    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
    }

After this, all app worked fine but after String qrText= await scanner.scan();
no qrText is returned, there is no debug/console errors too.

build gradle at 3.2.1 works fine though. can you please fix this for 3.5.0 and adndroidx?

Publish an update

Hey, it looks like you migrated to AndroidX libraries but haven't published an update.
How about to publish an update?

关于从相册中选择二维码文件识别后报错问题

我这边测试发现当从相册选择一个二维码图片进行识别的时候直接报错,
I/art (14122): Starting a blocking GC Alloc
I/art (14122): Starting a blocking GC Alloc
I/art (14122): Starting a blocking GC Alloc
I/art (14122): Clamp target GC heap from 141MB to 128MB
I/art (14122): Alloc partial concurrent mark sweep GC freed 26(928B) AllocSpace objects, 1(20KB) LOS objects, 2% free, 125MB/128MB, paused 237us total 11.613ms
I/art (14122): Starting a blocking GC Alloc
I/art (14122): Clamp target GC heap from 141MB to 128MB
I/art (14122): Alloc concurrent mark sweep GC freed 9(216B) AllocSpace objects, 0(0B) LOS objects, 2% free, 125MB/128MB, paused 286us total 24.512ms
I/art (14122): Forcing collection of SoftReferences for 15MB allocation
I/art (14122): Starting a blocking GC Alloc
I/art (14122): Clamp target GC heap from 141MB to 128MB
I/art (14122): Alloc concurrent mark sweep GC freed 3(72B) AllocSpace objects, 0(0B) LOS objects, 2% free, 125MB/128MB, paused 222us total 23.835ms
W/art (14122): Throwing OutOfMemoryError "Failed to allocate a 15925260 byte allocation with 2932616 free bytes and 2MB until OOM"
I/art (14122): WaitForGcToComplete blocked for 65.221ms for cause Background
I/art (14122): Starting a blocking GC Alloc
I/art (14122): Starting a blocking GC Alloc
I/art (14122): Starting a blocking GC Alloc
I/art (14122): Clamp target GC heap from 141MB to 128MB
I/art (14122): Alloc partial concurrent mark sweep GC freed 4(96B) AllocSpace objects, 0(0B) LOS objects, 2% free, 125MB/128MB, paused 229us total 11.574ms
I/art (14122): Starting a blocking GC Alloc
I/art (14122): Clamp target GC heap from 141MB to 128MB
I/art (14122): Alloc concurrent mark sweep GC freed 2(48B) AllocSpace objects, 0(0B) LOS objects, 2% free, 125MB/128MB, paused 227us total 23.730ms
I/art (14122): Forcing collection of SoftReferences for 15MB allocation
I/art (14122): Starting a blocking GC Alloc
I/art (14122): Clamp target GC heap from 141MB to 128MB
I/art (14122): Alloc concurrent mark sweep GC freed 3(72B) AllocSpace objects, 0(0B) LOS objects, 2% free, 125MB/128MB, paused 233us total 24.839ms
I/art (14122): Starting a blocking GC HomogeneousSpaceCompact
I/art (14122): Clamp target GC heap from 141MB to 128MB
I/art (14122): HomogeneousSpaceCompact marksweep + semispace GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 2% free, 125MB/128MB, paused 21.214ms total 21.214ms
W/art (14122): Throwing OutOfMemoryError "Failed to allocate a 15925260 byte allocation with 2932616 free bytes and 2MB until OOM"
D/AndroidRuntime(14122): Shutting down VM
E/AndroidRuntime(14122): FATAL EXCEPTION: main
E/AndroidRuntime(14122): Process: com.shinow.qrscan_example, PID: 14122
E/AndroidRuntime(14122): java.lang.OutOfMemoryError: Failed to allocate a 15925260 byte allocation with 2932616 free bytes and 2MB until OOM
E/AndroidRuntime(14122): at com.uuzuche.lib_zxing.camera.BitmapLuminanceSource.(BitmapLuminanceSource.java:20)
E/AndroidRuntime(14122): at com.uuzuche.lib_zxing.activity.CodeUtils.analyzeBitmap(CodeUtils.java:86)
E/AndroidRuntime(14122): at com.uuzuche.lib_zxing.activity.CodeUtils.analyzeBitmap(CodeUtils.java:62)
E/AndroidRuntime(14122): at com.shinow.qrscan.QrscanPlugin.onActivityResult(QrscanPlugin.java:108)
E/AndroidRuntime(14122): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:204)
E/AndroidRuntime(14122): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:132)
E/AndroidRuntime(14122): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:142)
E/AndroidRuntime(14122): at android.app.Activity.dispatchActivityResult(Activity.java:7100)
E/AndroidRuntime(14122): at android.app.ActivityThread.deliverResults(ActivityThread.java:4182)
E/AndroidRuntime(14122): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4229)
E/AndroidRuntime(14122): at android.app.ActivityThread.-wrap20(ActivityThread.java)
E/AndroidRuntime(14122): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
E/AndroidRuntime(14122): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(14122): at android.os.Looper.loop(Looper.java:154)
E/AndroidRuntime(14122): at android.app.ActivityThread.main(ActivityThread.java:6256)
E/AndroidRuntime(14122): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(14122): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime(14122): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:793)
I/Process (14122): Sending signal. PID: 14122 SIG: 9
Lost connection to device.

我这边测试发现很可能是因为图片文件编码问题,
因为图片经过 flutter_image_compress类压缩处理后就能识别了。
能否在从相册选择文件后,对他先进行压缩或者编码处理后在进行识别呢

iOS编译的时候报错

`flutter run
Launching lib/main.dart on iPhone Xʀ in debug mode...
Running pod install... 1.0s
CocoaPods' output:

Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Finding Podfile changes
  A qrscan
  R barcode_scan
  - Flutter

Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `qrscan` from `.symlinks/plugins/qrscan/ios`

Resolving dependencies of `Podfile`

Comparing resolved specification to the sandbox manifest
  A Flutter
  A qrscan

Downloading dependencies

-> Installing Flutter (1.0.0)

-> Installing qrscan (0.0.1)
  - Running pre install hooks
[!] Unable to determine Swift version for the following pods:

- `qrscan` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the
author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.

/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer/xcode/target_validator.rb:115:in `verify_swift_pods_swift_version'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer/xcode/target_validator.rb:37:in `validate!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer.rb:459:in `validate_targets'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer.rb:138:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/command/install.rb:48:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'

Error output from CocoaPods:

[!] The version of CocoaPods used to generate the lockfile (1.7.5) is higher than the version of the current executable (1.6.1). Incompatibility issues
may arise.

[!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this
target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install
Error launching application on iPhone Xʀ.`

This plugin can not used by an Application of Android X。

import android.support.v4.content.ContextCompat;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;

Hello, 因为Androidx和Android support库不能共存问题导致不能直接引用插件使用,能不能把插件 Migrate to AndroidX,不然只能修改了在本地引用了。

Unhandled Exception:

Hello,

I'm trying this package with your example in the project.
I can succeed scan a barcord on Android device.
But on ipod touch, I've stacked to scan with following error:

#0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:314:7)
<asynchronous suspension>
#1      scan (package:qrscan/qrscan.dart:13:47)
<asynchronous suspension>
#2      _MyAppState._scan (package:qrscan_example/main.dart:258:28)
<asynchronous suspension>
#3      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:654:14)
#4      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:729:32)
#5      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
#6      TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
#7      TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:312:7)
#8      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
#9      GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20)
#10     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
#11     GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
#12     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
#13     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
#14     _rootRunUnary (dart:async/zone.dart:1136:13)
#15     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#16     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#17     _invoke1 (dart:ui/hooks.dart:263:10)
#18     _dispatchPointerDataPacket (dart:ui/hooks.dart:172:5)

Do you have any suggestions about this? Thank you for your kindly help!

Resizing the scan area

Is there any way to resize the scan area? I've attempted to edit the second activity xml file, but unsure of what i should change.
Thank you in advance.

获取不到相机权限

如题,设置了
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.VIBRATE"/>
也没用。

W/CameraBase(13186): An error occurred while connecting to camera 0: Status(-8): '1: validateClientPermissionsLocked:1138: Caller "com.example.motiontrack" (PID 10110, UID 13186) can
not open camera "0" without camera permission'
E/TAG (13186): callBack:
E/TAG (13186): java.lang.RuntimeException: Fail to connect to camera service
E/TAG (13186): at android.hardware.Camera.(Camera.java:574)
E/TAG (13186): at android.hardware.Camera.open(Camera.java:422)

扫描界面有些小问题

调用scan()打开的扫描界面,左上角的返回按钮和右上角的图片按钮无法有效触发。
在实体机测试时,返回按钮不太好触发(可以稍微加大点?或是调大点,点击有效区)
图片按钮则似乎完全无效。。。

Scan on streaming camera

Hi, Can I apply qrcode_scanner just when I'm streaming from camera?.

I need do the following code, for example:

cameraController.startImageStream((CameraImage availableImage) {
    _qrScan(availableImage);
});

I noticed when I execute scan(), this method open the camera. Can I apply just code processing given an CameraImage?

Thank you!

support androidX

The plugin is worked, but can't support androidX well. Maybe you can update for it.

Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'.

Unable to build release due to following error

Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'. >
Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'. >
Could not find com.github.leyan95:android-zxingLibrary:0.1.1-PRE. Required by: project :app >
com.shinow.qrscan:qrscan_release:1.0

Build failed with qrscan

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':qrscan'.

Failed to notify project evaluation listener.
java.lang.AbstractMethodError (no error message)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.