mintware-de / flutter_barcode_reader Goto Github PK
View Code? Open in Web Editor NEWA flutter plugin for reading 2D barcodes and QR codes.
License: MIT License
A flutter plugin for reading 2D barcodes and QR codes.
License: MIT License
barcode_scan version 0.0.8
IOS version 11.4.1
Tested on iPhone 6 and iPhone 7.
https://i.imgur.com/3umeOrq.jpg
Start in portrait mode and then rotate the phone, it will switch to landscape mode but only the left side of the screen will show the camera.
Start in landscape mode and then rotate the phone, it will switch to portrait mode but only the top half of the screen will show the camera.
Semi-related to #56 in that I would like to disable landscape mode completely but an unsure how to do that on iPhones.
Thanks.
When attempting to flutter build apk --verbose, I get this:
` +29 ms] executing: [/Users/xxx/Development/Flutter/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +29 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/master
[ ] executing: [/Users/xxx/Development/Flutter/flutter/] git rev-parse --abbrev-ref HEAD
[ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] master
[ ] executing: [/Users/Axxx/Development/Flutter/flutter/] git ls-remote --get-url origin
[ +5 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] executing: [/Users/xxx/Development/Flutter/flutter/] git log -n 1 --pretty=format:%H
[ +6 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] d91f1608c59375647fda62ef401d5bdde38355d4
[ ] executing: [/Users/xxx/Development/Flutter/flutter/] git log -n 1 --pretty=format:%ar
[ +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 2 weeks ago
[ ] executing: [/Users/xxx/Development/Flutter/flutter/] git describe --match v*.. --first-parent --long --tags
[ +12 ms] Exit code 0 from: git describe --match v*.. --first-parent --long --tags
[ ] v0.9.5-45-gd91f1608c
[ +199 ms] Found plugin barcode_scan at /Users/xxx.pub-cache/hosted/pub.dartlang.org/barcode_scan-0.0.7/
[ +53 ms] Found plugin shared_preferences at /Users/xxx.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.2/
[ +58 ms] Found plugin barcode_scan at /Users/xxx/.pub-cache/hosted/pub.dartlang.org/barcode_scan-0.0.7/
[ +30 ms] Found plugin shared_preferences at /Users/xxx/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.2/
[ +160 ms] Initializing gradle...
[ +4 ms] Using gradle from /Users/xxx/Development/PenMobile.X/android/gradlew.
[ +10 ms] executing: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[ +38 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString
[ ] 3.2
[ +69 ms] executing: /Users/xxx/Development/PenMobile.X/android/gradlew -v
[ +570 ms]
------------------------------------------------------------
Gradle 4.6
------------------------------------------------------------
Build time: 2018-02-28 13:36:36 UTC
Revision: 8fa6ce7945b640e6168488e4417f9bb96e4ab46c
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b06)
OS: Mac OS X 10.13.6 x86_64
[ ] Initializing gradle... (completed)
[ +10 ms] Resolving dependencies...
[ ] executing: [/Users/xxx/Development/PenMobile.X/android/] /Users/xxx/Development/PenMobile.X/android/gradlew app:properties
[ +967 ms]
------------------------------------------------------------
Project :app
------------------------------------------------------------
INTERNAL__CHECKED_MINIMUM_PLUGIN_VERSIONS: true
allprojects: [project ':app']
android: com.android.build.gradle.internal.dsl.BaseAppModuleExtension_Decorated@461e9f4c
androidDependencies: task ':app:androidDependencies'
ant: org.gradle.api.internal.project.DefaultAntBuilder@31c09eb
antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@78204aa0
archivesBaseName: app
artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@32d5e9f7
asDynamicObject: DynamicObject for project ':app'
assemble: task ':app:assemble'
assembleAndroidTest: task ':app:assembleAndroidTest'
assembleDebug: task ':app:assembleDebug'
assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest'
assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
assembleDynamicProfile: task ':app:assembleDynamicProfile'
assembleDynamicProfileUnitTest: task ':app:assembleDynamicProfileUnitTest'
assembleDynamicRelease: task ':app:assembleDynamicRelease'
assembleDynamicReleaseUnitTest: task ':app:assembleDynamicReleaseUnitTest'
assembleProfile: task ':app:assembleProfile'
assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
assembleRelease: task ':app:assembleRelease'
assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@3f41e
buildDebugPreBundle: task ':app:buildDebugPreBundle'
buildDependents: task ':app:buildDependents'
buildDir: /Users/xxxDevelopment/PenMobile.X/build/app
buildDynamicProfilePreBundle: task ':app:buildDynamicProfilePreBundle'
buildDynamicReleasePreBundle: task ':app:buildDynamicReleasePreBundle'
buildFile: /Users/xxx/Development/PenMobile.X/android/app/build.gradle
buildNeeded: task ':app:buildNeeded'
buildOutputs: BaseVariantOutput container
buildPath: :
buildProfilePreBundle: task ':app:buildProfilePreBundle'
buildReleasePreBundle: task ':app:buildReleasePreBundle'
buildScriptSource: org.gradle.groovy.scripts.TextResourceScriptSource@6333f6a4
buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@19bcc528
bundle: task ':app:bundle'
bundleDebug: task ':app:bundleDebug'
bundleDebugAndroidTestResources: task ':app:bundleDebugAndroidTestResources'
bundleDebugResources: task ':app:bundleDebugResources'
bundleDynamicProfile: task ':app:bundleDynamicProfile'
bundleDynamicProfileResources: task ':app:bundleDynamicProfileResources'
bundleDynamicRelease: task ':app:bundleDynamicRelease'
bundleDynamicReleaseResources: task ':app:bundleDynamicReleaseResources'
bundleProfile: task ':app:bundleProfile'
bundleProfileResources: task ':app:bundleProfileResources'
bundleRelease: task ':app:bundleRelease'
bundleReleaseResources: task ':app:bundleReleaseResources'
check: task ':app:check'
checkDebugAndroidTestClasspath: task ':app:checkDebugAndroidTestClasspath'
checkDebugClasspath: task ':app:checkDebugClasspath'
checkDebugLibraries: task ':app:checkDebugLibraries'
checkDebugManifest: task ':app:checkDebugManifest'
checkDynamicProfileClasspath: task ':app:checkDynamicProfileClasspath'
checkDynamicProfileLibraries: task ':app:checkDynamicProfileLibraries'
checkDynamicProfileManifest: task ':app:checkDynamicProfileManifest'
checkDynamicReleaseClasspath: task ':app:checkDynamicReleaseClasspath'
checkDynamicReleaseLibraries: task ':app:checkDynamicReleaseLibraries'
checkDynamicReleaseManifest: task ':app:checkDynamicReleaseManifest'
checkProfileClasspath: task ':app:checkProfileClasspath'
checkProfileLibraries: task ':app:checkProfileLibraries'
checkProfileManifest: task ':app:checkProfileManifest'
checkReleaseClasspath: task ':app:checkReleaseClasspath'
checkReleaseLibraries: task ':app:checkReleaseLibraries'
checkReleaseManifest: task ':app:checkReleaseManifest'
childProjects: {}
class: class org.gradle.api.internal.project.DefaultProject_Decorated
classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@4bb1db9
cleanBuildCache: task ':app:cleanBuildCache'
compileDebugAidl: task ':app:compileDebugAidl'
compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl'
compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac'
compileDebugAndroidTestKotlin: task ':app:compileDebugAndroidTestKotlin'
compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk'
compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript'
compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders'
compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources'
compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac'
compileDebugKotlin: task ':app:compileDebugKotlin'
compileDebugNdk: task ':app:compileDebugNdk'
compileDebugRenderscript: task ':app:compileDebugRenderscript'
compileDebugShaders: task ':app:compileDebugShaders'
compileDebugSources: task ':app:compileDebugSources'
compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac'
compileDebugUnitTestKotlin: task ':app:compileDebugUnitTestKotlin'
compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources'
compileDynamicProfileAidl: task ':app:compileDynamicProfileAidl'
compileDynamicProfileJavaWithJavac: task ':app:compileDynamicProfileJavaWithJavac'
compileDynamicProfileKotlin: task ':app:compileDynamicProfileKotlin'
compileDynamicProfileNdk: task ':app:compileDynamicProfileNdk'
compileDynamicProfileRenderscript: task ':app:compileDynamicProfileRenderscript'
compileDynamicProfileShaders: task ':app:compileDynamicProfileShaders'
compileDynamicProfileSources: task ':app:compileDynamicProfileSources'
compileDynamicProfileUnitTestJavaWithJavac: task ':app:compileDynamicProfileUnitTestJavaWithJavac'
compileDynamicProfileUnitTestKotlin: task ':app:compileDynamicProfileUnitTestKotlin'
compileDynamicProfileUnitTestSources: task ':app:compileDynamicProfileUnitTestSources'
compileDynamicReleaseAidl: task ':app:compileDynamicReleaseAidl'
compileDynamicReleaseJavaWithJavac: task ':app:compileDynamicReleaseJavaWithJavac'
compileDynamicReleaseKotlin: task ':app:compileDynamicReleaseKotlin'
compileDynamicReleaseNdk: task ':app:compileDynamicReleaseNdk'
compileDynamicReleaseRenderscript: task ':app:compileDynamicReleaseRenderscript'
compileDynamicReleaseShaders: task ':app:compileDynamicReleaseShaders'
compileDynamicReleaseSources: task ':app:compileDynamicReleaseSources'
compileDynamicReleaseUnitTestJavaWithJavac: task ':app:compileDynamicReleaseUnitTestJavaWithJavac'
compileDynamicReleaseUnitTestKotlin: task ':app:compileDynamicReleaseUnitTestKotlin'
compileDynamicReleaseUnitTestSources: task ':app:compileDynamicReleaseUnitTestSources'
compileLint: task ':app:compileLint'
compileProfileAidl: task ':app:compileProfileAidl'
compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac'
compileProfileKotlin: task ':app:compileProfileKotlin'
compileProfileNdk: task ':app:compileProfileNdk'
compileProfileRenderscript: task ':app:compileProfileRenderscript'
compileProfileShaders: task ':app:compileProfileShaders'
compileProfileSources: task ':app:compileProfileSources'
compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac'
compileProfileUnitTestKotlin: task ':app:compileProfileUnitTestKotlin'
compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources'
compileReleaseAidl: task ':app:compileReleaseAidl'
compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac'
compileReleaseKotlin: task ':app:compileReleaseKotlin'
compileReleaseNdk: task ':app:compileReleaseNdk'
compileReleaseRenderscript: task ':app:compileReleaseRenderscript'
compileReleaseShaders: task ':app:compileReleaseShaders'
compileReleaseSources: task ':app:compileReleaseSources'
compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac'
compileReleaseUnitTestKotlin: task ':app:compileReleaseUnitTestKotlin'
compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources'
components: SoftwareComponentInternal set
configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@1b07ba34
configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@677de926
configurations: configuration container
connectedAndroidTest: task ':app:connectedAndroidTest'
connectedCheck: task ':app:connectedCheck'
connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest'
consumeConfigAttr: task ':app:consumeConfigAttr'
convention: org.gradle.api.internal.plugins.DefaultConvention@1897e564
copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
copyFlutterAssetsDynamicProfile: task ':app:copyFlutterAssetsDynamicProfile'
copyFlutterAssetsDynamicRelease: task ':app:copyFlutterAssetsDynamicRelease'
copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests'
createDynamicProfileCompatibleScreenManifests: task ':app:createDynamicProfileCompatibleScreenManifests'
createDynamicReleaseCompatibleScreenManifests: task ':app:createDynamicReleaseCompatibleScreenManifests'
createMockableJar: task ':app:createMockableJar'
createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests'
createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests'
defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@441d751a
defaultTasks: []
deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@62edb1b7
dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@6ad15015
depth: 1
description: null
deviceAndroidTest: task ':app:deviceAndroidTest'
deviceCheck: task ':app:deviceCheck'
displayName: project ':app'
distsDir: /Users/xxx/Development/PenMobile.X/build/app/distributions
distsDirName: distributions
docsDir: /Users/xxx/Development/PenMobile.X/build/app/docs
docsDirName: docs
ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@4d4a24ee
extensions: org.gradle.api.internal.plugins.DefaultConvention@1897e564
extractApksForDebug: task ':app:extractApksForDebug'
extractApksForDynamicProfile: task ':app:extractApksForDynamicProfile'
extractApksForDynamicRelease: task ':app:extractApksForDynamicRelease'
extractApksForProfile: task ':app:extractApksForProfile'
extractApksForRelease: task ':app:extractApksForRelease'
extractProguardFiles: task ':app:extractProguardFiles'
fileOperations: org.gradle.api.internal.file.DefaultFileOperations@62503df8
fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@6d3f480c
flutter: FlutterExtension_Decorated@d8efc46
flutterBuildDebug: task ':app:flutterBuildDebug'
flutterBuildDynamicProfile: task ':app:flutterBuildDynamicProfile'
flutterBuildDynamicRelease: task ':app:flutterBuildDynamicRelease'
flutterBuildProfile: task ':app:flutterBuildProfile'
flutterBuildRelease: task ':app:flutterBuildRelease'
flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets'
generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig'
generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues'
generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources'
generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources'
generateDebugAssets: task ':app:generateDebugAssets'
generateDebugBuildConfig: task ':app:generateDebugBuildConfig'
generateDebugFeatureMetadata: task ':app:generateDebugFeatureMetadata'
generateDebugFeatureTransitiveDeps: task ':app:generateDebugFeatureTransitiveDeps'
generateDebugResValues: task ':app:generateDebugResValues'
generateDebugResources: task ':app:generateDebugResources'
generateDebugSources: task ':app:generateDebugSources'
generateDebugUnitTestAssets: task ':app:generateDebugUnitTestAssets'
generateDebugUnitTestResources: task ':app:generateDebugUnitTestResources'
generateDebugUnitTestSources: task ':app:generateDebugUnitTestSources'
generateDynamicProfileAssets: task ':app:generateDynamicProfileAssets'
generateDynamicProfileBuildConfig: task ':app:generateDynamicProfileBuildConfig'
generateDynamicProfileFeatureMetadata: task ':app:generateDynamicProfileFeatureMetadata'
generateDynamicProfileFeatureTransitiveDeps: task ':app:generateDynamicProfileFeatureTransitiveDeps'
generateDynamicProfileResValues: task ':app:generateDynamicProfileResValues'
generateDynamicProfileResources: task ':app:generateDynamicProfileResources'
generateDynamicProfileSources: task ':app:generateDynamicProfileSources'
generateDynamicProfileUnitTestAssets: task ':app:generateDynamicProfileUnitTestAssets'
generateDynamicProfileUnitTestResources: task ':app:generateDynamicProfileUnitTestResources'
generateDynamicProfileUnitTestSources: task ':app:generateDynamicProfileUnitTestSources'
generateDynamicReleaseAssets: task ':app:generateDynamicReleaseAssets'
generateDynamicReleaseBuildConfig: task ':app:generateDynamicReleaseBuildConfig'
generateDynamicReleaseFeatureMetadata: task ':app:generateDynamicReleaseFeatureMetadata'
generateDynamicReleaseFeatureTransitiveDeps: task ':app:generateDynamicReleaseFeatureTransitiveDeps'
generateDynamicReleaseResValues: task ':app:generateDynamicReleaseResValues'
generateDynamicReleaseResources: task ':app:generateDynamicReleaseResources'
generateDynamicReleaseSources: task ':app:generateDynamicReleaseSources'
generateDynamicReleaseUnitTestAssets: task ':app:generateDynamicReleaseUnitTestAssets'
generateDynamicReleaseUnitTestResources: task ':app:generateDynamicReleaseUnitTestResources'
generateDynamicReleaseUnitTestSources: task ':app:generateDynamicReleaseUnitTestSources'
generateProfileAssets: task ':app:generateProfileAssets'
generateProfileBuildConfig: task ':app:generateProfileBuildConfig'
generateProfileFeatureMetadata: task ':app:generateProfileFeatureMetadata'
generateProfileFeatureTransitiveDeps: task ':app:generateProfileFeatureTransitiveDeps'
generateProfileResValues: task ':app:generateProfileResValues'
generateProfileResources: task ':app:generateProfileResources'
generateProfileSources: task ':app:generateProfileSources'
generateProfileUnitTestAssets: task ':app:generateProfileUnitTestAssets'
generateProfileUnitTestResources: task ':app:generateProfileUnitTestResources'
generateProfileUnitTestSources: task ':app:generateProfileUnitTestSources'
generateReleaseAssets: task ':app:generateReleaseAssets'
generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig'
generateReleaseFeatureMetadata: task ':app:generateReleaseFeatureMetadata'
generateReleaseFeatureTransitiveDeps: task ':app:generateReleaseFeatureTransitiveDeps'
generateReleaseResValues: task ':app:generateReleaseResValues'
generateReleaseResources: task ':app:generateReleaseResources'
generateReleaseSources: task ':app:generateReleaseSources'
generateReleaseUnitTestAssets: task ':app:generateReleaseUnitTestAssets'
generateReleaseUnitTestResources: task ':app:generateReleaseUnitTestResources'
generateReleaseUnitTestSources: task ':app:generateReleaseUnitTestSources'
gradle: build 'android'
group: android
identityPath: :app
inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@11ffc44d
installDebug: task ':app:installDebug'
installDebugAndroidTest: task ':app:installDebugAndroidTest'
installDynamicProfile: task ':app:installDynamicProfile'
installDynamicRelease: task ':app:installDynamicRelease'
installProfile: task ':app:installProfile'
installRelease: task ':app:installRelease'
javaPreCompileDebug: task ':app:javaPreCompileDebug'
javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest'
javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest'
javaPreCompileDynamicProfile: task ':app:javaPreCompileDynamicProfile'
javaPreCompileDynamicProfileUnitTest: task ':app:javaPreCompileDynamicProfileUnitTest'
javaPreCompileDynamicRelease: task ':app:javaPreCompileDynamicRelease'
javaPreCompileDynamicReleaseUnitTest: task ':app:javaPreCompileDynamicReleaseUnitTest'
javaPreCompileProfile: task ':app:javaPreCompileProfile'
javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest'
javaPreCompileRelease: task ':app:javaPreCompileRelease'
javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest'
kotlin: org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension_Decorated@72238477
kotlin_version: 1.2.61
layout: org.gradle.api.internal.file.DefaultProjectLayout@654bdd17
libsDir: /Users/xxx/Development/PenMobile.X/build/app/libs
libsDirName: libs
lint: task ':app:lint'
lintDebug: task ':app:lintDebug'
lintDynamicProfile: task ':app:lintDynamicProfile'
lintDynamicRelease: task ':app:lintDynamicRelease'
lintFix: task ':app:lintFix'
lintProfile: task ':app:lintProfile'
lintRelease: task ':app:lintRelease'
lintVitalRelease: task ':app:lintVitalRelease'
logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@a514d1b
logging: org.gradle.internal.logging.services.DefaultLoggingManager@1f5d7134
mainApkListPersistenceDebug: task ':app:mainApkListPersistenceDebug'
mainApkListPersistenceDebugAndroidTest: task ':app:mainApkListPersistenceDebugAndroidTest'
mainApkListPersistenceDynamicProfile: task ':app:mainApkListPersistenceDynamicProfile'
mainApkListPersistenceDynamicRelease: task ':app:mainApkListPersistenceDynamicRelease'
mainApkListPersistenceProfile: task ':app:mainApkListPersistenceProfile'
mainApkListPersistenceRelease: task ':app:mainApkListPersistenceRelease'
makeApkFromBundleForDebug: task ':app:makeApkFromBundleForDebug'
makeApkFromBundleForDynamicProfile: task ':app:makeApkFromBundleForDynamicProfile'
makeApkFromBundleForDynamicRelease: task ':app:makeApkFromBundleForDynamicRelease'
makeApkFromBundleForProfile: task ':app:makeApkFromBundleForProfile'
makeApkFromBundleForRelease: task ':app:makeApkFromBundleForRelease'
mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets'
mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders'
mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources'
mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders'
mergeDebugAssets: task ':app:mergeDebugAssets'
mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
mergeDebugResources: task ':app:mergeDebugResources'
mergeDebugShaders: task ':app:mergeDebugShaders'
mergeDynamicProfileAssets: task ':app:mergeDynamicProfileAssets'
mergeDynamicProfileJniLibFolders: task ':app:mergeDynamicProfileJniLibFolders'
mergeDynamicProfileResources: task ':app:mergeDynamicProfileResources'
mergeDynamicProfileShaders: task ':app:mergeDynamicProfileShaders'
mergeDynamicReleaseAssets: task ':app:mergeDynamicReleaseAssets'
mergeDynamicReleaseJniLibFolders: task ':app:mergeDynamicReleaseJniLibFolders'
mergeDynamicReleaseResources: task ':app:mergeDynamicReleaseResources'
mergeDynamicReleaseShaders: task ':app:mergeDynamicReleaseShaders'
mergeProfileAssets: task ':app:mergeProfileAssets'
mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders'
mergeProfileResources: task ':app:mergeProfileResources'
mergeProfileShaders: task ':app:mergeProfileShaders'
mergeReleaseAssets: task ':app:mergeReleaseAssets'
mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders'
mergeReleaseResources: task ':app:mergeReleaseResources'
mergeReleaseShaders: task ':app:mergeReleaseShaders'
modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@706f033e
modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@5753fde7
module: org.gradle.api.internal.artifacts.ProjectBackedModule@1ac4cdaa
name: app
normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@1e012178
objects: org.gradle.api.internal.model.DefaultObjectFactory@2599f4ca
org.gradle.jvmargs: -Xmx1536M
packageAppClassesDebug: task ':app:packageAppClassesDebug'
packageAppClassesDebugAndroidTest: task ':app:packageAppClassesDebugAndroidTest'
packageAppClassesDebugUnitTest: task ':app:packageAppClassesDebugUnitTest'
packageAppClassesDynamicProfile: task ':app:packageAppClassesDynamicProfile'
packageAppClassesDynamicProfileUnitTest: task ':app:packageAppClassesDynamicProfileUnitTest'
packageAppClassesDynamicRelease: task ':app:packageAppClassesDynamicRelease'
packageAppClassesDynamicReleaseUnitTest: task ':app:packageAppClassesDynamicReleaseUnitTest'
packageAppClassesProfile: task ':app:packageAppClassesProfile'
packageAppClassesProfileUnitTest: task ':app:packageAppClassesProfileUnitTest'
packageAppClassesRelease: task ':app:packageAppClassesRelease'
packageAppClassesReleaseUnitTest: task ':app:packageAppClassesReleaseUnitTest'
packageDebug: task ':app:packageDebug'
packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
packageDebugBundle: task ':app:packageDebugBundle'
packageDebugUniversalApk: task ':app:packageDebugUniversalApk'
packageDynamicProfile: task ':app:packageDynamicProfile'
packageDynamicProfileBundle: task ':app:packageDynamicProfileBundle'
packageDynamicProfileUniversalApk: task ':app:packageDynamicProfileUniversalApk'
packageDynamicRelease: task ':app:packageDynamicRelease'
packageDynamicReleaseBundle: task ':app:packageDynamicReleaseBundle'
packageDynamicReleaseUniversalApk: task ':app:packageDynamicReleaseUniversalApk'
packageProfile: task ':app:packageProfile'
packageProfileBundle: task ':app:packageProfileBundle'
packageProfileUniversalApk: task ':app:packageProfileUniversalApk'
packageRelease: task ':app:packageRelease'
packageReleaseBundle: task ':app:packageReleaseBundle'
packageReleaseUniversalApk: task ':app:packageReleaseUniversalApk'
parent: root project 'android'
parentIdentifier: root project 'android'
path: :app
pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@51b9e59c
plugins: [org.gradle.api.plugins.HelpTasksPlugin@1a269710, com.android.build.gradle.api.AndroidBasePlugin@7378298e, org.gradle.language.base.plugins.LifecycleBasePlugin@3e78fea7, org.gradle.api.plugins.BasePlugin@70936b91, org.gradle.api.plugins.ReportingBasePlugin@47d8e1e3, org.gradle.platform.base.plugins.ComponentBasePlugin@21dc1b1f, org.gradle.language.base.plugins.LanguageBasePlugin@218b213e, org.gradle.platform.base.plugins.BinaryBasePlugin@1ef965ec, org.gradle.api.plugins.JavaBasePlugin@4004bbd7, com.android.build.gradle.AppPlugin@247783df, org.jetbrains.kotlin.gradle.plugin.KotlinAndroidPluginWrapper@57e9f071, FlutterPlugin@74155f2a]
preBuild: task ':app:preBuild'
preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild'
preDebugBuild: task ':app:preDebugBuild'
preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
preDynamicProfileBuild: task ':app:preDynamicProfileBuild'
preDynamicProfileUnitTestBuild: task ':app:preDynamicProfileUnitTestBuild'
preDynamicReleaseBuild: task ':app:preDynamicReleaseBuild'
preDynamicReleaseUnitTestBuild: task ':app:preDynamicReleaseUnitTestBuild'
preProfileBuild: task ':app:preProfileBuild'
preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
preReleaseBuild: task ':app:preReleaseBuild'
preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
prepareLintJar: task ':app:prepareLintJar'
processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes'
processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest'
processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources'
processDebugJavaRes: task ':app:processDebugJavaRes'
processDebugManifest: task ':app:processDebugManifest'
processDebugResources: task ':app:processDebugResources'
processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes'
processDynamicProfileJavaRes: task ':app:processDynamicProfileJavaRes'
processDynamicProfileManifest: task ':app:processDynamicProfileManifest'
processDynamicProfileResources: task ':app:processDynamicProfileResources'
processDynamicProfileUnitTestJavaRes: task ':app:processDynamicProfileUnitTestJavaRes'
processDynamicReleaseJavaRes: task ':app:processDynamicReleaseJavaRes'
processDynamicReleaseManifest: task ':app:processDynamicReleaseManifest'
processDynamicReleaseResources: task ':app:processDynamicReleaseResources'
processDynamicReleaseUnitTestJavaRes: task ':app:processDynamicReleaseUnitTestJavaRes'
processOperations: org.gradle.api.internal.file.DefaultFileOperations@62503df8
processProfileJavaRes: task ':app:processProfileJavaRes'
processProfileManifest: task ':app:processProfileManifest'
processProfileResources: task ':app:processProfileResources'
processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes'
processReleaseJavaRes: task ':app:processReleaseJavaRes'
processReleaseManifest: task ':app:processReleaseManifest'
processReleaseResources: task ':app:processReleaseResources'
processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes'
project: project ':app'
projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@59476a66
projectDir: /Users/xxx/Development/PenMobile.X/android/app
projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@4eda9ad7
projectPath: :app
projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@248f0862
properties: {...}
providers: org.gradle.api.internal.provider.DefaultProviderFactory@c270498
reportBuildArtifactsDebug: task ':app:reportBuildArtifactsDebug'
reportBuildArtifactsDynamicProfile: task ':app:reportBuildArtifactsDynamicProfile'
reportBuildArtifactsDynamicRelease: task ':app:reportBuildArtifactsDynamicRelease'
reportBuildArtifactsProfile: task ':app:reportBuildArtifactsProfile'
reportBuildArtifactsRelease: task ':app:reportBuildArtifactsRelease'
reportSourceSetTransformAndroidTest: task ':app:reportSourceSetTransformAndroidTest'
reportSourceSetTransformAndroidTestDebug: task ':app:reportSourceSetTransformAndroidTestDebug'
reportSourceSetTransformDebug: task ':app:reportSourceSetTransformDebug'
reportSourceSetTransformDynamicProfile: task ':app:reportSourceSetTransformDynamicProfile'
reportSourceSetTransformDynamicRelease: task ':app:reportSourceSetTransformDynamicRelease'
reportSourceSetTransformMain: task ':app:reportSourceSetTransformMain'
reportSourceSetTransformProfile: task ':app:reportSourceSetTransformProfile'
reportSourceSetTransformRelease: task ':app:reportSourceSetTransformRelease'
reportSourceSetTransformTest: task ':app:reportSourceSetTransformTest'
reportSourceSetTransformTestDebug: task ':app:reportSourceSetTransformTestDebug'
reportSourceSetTransformTestDynamicProfile: task ':app:reportSourceSetTransformTestDynamicProfile'
reportSourceSetTransformTestDynamicRelease: task ':app:reportSourceSetTransformTestDynamicRelease'
reportSourceSetTransformTestProfile: task ':app:reportSourceSetTransformTestProfile'
reportSourceSetTransformTestRelease: task ':app:reportSourceSetTransformTestRelease'
reporting: org.gradle.api.reporting.ReportingExtension_Decorated@3a849c6a
reportsDir: /Users/xxx/Development/PenMobile.X/build/app/reports
repositories: repository container
resolveConfigAttr: task ':app:resolveConfigAttr'
resourceLoader: org.gradle.internal.resource.transfer.DefaultUriTextResourceLoader@5872c506
resources: org.gradle.api.internal.resources.DefaultResourceHandler@42e4e0fd
rootDir: /Users/xxx/Development/PenMobile.X/android
rootProject: root project 'android'
script: false
scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@1e742cdb
scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@8d94b3
serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@4e193b51
services: ProjectScopeServices
signingReport: task ':app:signingReport'
sourceCompatibility: 1.8
sourceSets: SourceSet container
splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug'
splitsDiscoveryTaskDynamicProfile: task ':app:splitsDiscoveryTaskDynamicProfile'
splitsDiscoveryTaskDynamicRelease: task ':app:splitsDiscoveryTaskDynamicRelease'
splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile'
splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease'
standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@1f5d7134
state: project state 'EXECUTED'
status: integration
subprojects: []
targetCompatibility: 1.8
tasks: task set
test: task ':app:test'
testDebugUnitTest: task ':app:testDebugUnitTest'
testDynamicProfileUnitTest: task ':app:testDynamicProfileUnitTest'
testDynamicReleaseUnitTest: task ':app:testDynamicReleaseUnitTest'
testProfileUnitTest: task ':app:testProfileUnitTest'
testReleaseUnitTest: task ':app:testReleaseUnitTest'
testReportDir: /Users/xxx/Development/PenMobile.X/build/app/reports/tests
testReportDirName: tests
testResultsDir: /Users/xxx/Development/PenMobile.X/build/app/test-results
testResultsDirName: test-results
transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug'
transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest'
transformClassesWithDexBuilderForDynamicProfile: task ':app:transformClassesWithDexBuilderForDynamicProfile'
transformClassesWithDexBuilderForDynamicRelease: task ':app:transformClassesWithDexBuilderForDynamicRelease'
transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile'
transformClassesWithDexBuilderForRelease: task ':app:transformClassesWithDexBuilderForRelease'
transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug'
transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
transformDexArchiveWithDexMergerForDynamicProfile: task ':app:transformDexArchiveWithDexMergerForDynamicProfile'
transformDexArchiveWithDexMergerForDynamicRelease: task ':app:transformDexArchiveWithDexMergerForDynamicRelease'
transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile'
transformDexArchiveWithDexMergerForRelease: task ':app:transformDexArchiveWithDexMergerForRelease'
transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'
transformDexArchiveWithExternalLibsDexMergerForDynamicProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicProfile'
transformDexArchiveWithExternalLibsDexMergerForDynamicRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicRelease'
transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile'
transformDexArchiveWithExternalLibsDexMergerForRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease'
transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug'
transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest'
transformNativeLibsWithMergeJniLibsForDynamicProfile: task ':app:transformNativeLibsWithMergeJniLibsForDynamicProfile'
transformNativeLibsWithMergeJniLibsForDynamicRelease: task ':app:transformNativeLibsWithMergeJniLibsForDynamicRelease'
transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile'
transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease'
transformNativeLibsWithStripDebugSymbolForDebug: task ':app:transformNativeLibsWithStripDebugSymbolForDebug'
transformNativeLibsWithStripDebugSymbolForDynamicProfile: task ':app:transformNativeLibsWithStripDebugSymbolForDynamicProfile'
transformNativeLibsWithStripDebugSymbolForDynamicRelease: task ':app:transformNativeLibsWithStripDebugSymbolForDynamicRelease'
transformNativeLibsWithStripDebugSymbolForProfile: task ':app:transformNativeLibsWithStripDebugSymbolForProfile'
transformNativeLibsWithStripDebugSymbolForRelease: task ':app:transformNativeLibsWithStripDebugSymbolForRelease'
transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug'
transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest'
transformResourcesWithMergeJavaResForDynamicProfile: task ':app:transformResourcesWithMergeJavaResForDynamicProfile'
transformResourcesWithMergeJavaResForDynamicProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicProfileUnitTest'
transformResourcesWithMergeJavaResForDynamicRelease: task ':app:transformResourcesWithMergeJavaResForDynamicRelease'
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicReleaseUnitTest'
transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile'
transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest'
transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease'
transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
uninstallAll: task ':app:uninstallAll'
uninstallDebug: task ':app:uninstallDebug'
uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest'
uninstallDynamicProfile: task ':app:uninstallDynamicProfile'
uninstallDynamicRelease: task ':app:uninstallDynamicRelease'
uninstallProfile: task ':app:uninstallProfile'
uninstallRelease: task ':app:uninstallRelease'
validateSigningDebug: task ':app:validateSigningDebug'
validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest'
validateSigningDynamicProfile: task ':app:validateSigningDynamicProfile'
validateSigningDynamicRelease: task ':app:validateSigningDynamicRelease'
validateSigningProfile: task ':app:validateSigningProfile'
validateSigningRelease: task ':app:validateSigningRelease'
version: unspecified
writeDebugApplicationId: task ':app:writeDebugApplicationId'
writeDynamicProfileApplicationId: task ':app:writeDynamicProfileApplicationId'
writeDynamicReleaseApplicationId: task ':app:writeDynamicReleaseApplicationId'
writeProfileApplicationId: task ':app:writeProfileApplicationId'
writeReleaseApplicationId: task ':app:writeReleaseApplicationId'
1 actionable task: 1 executed
[ +10 ms] Resolving dependencies... (completed)
[ +1 ms] Gradle task 'assembleRelease'...
[ +3 ms] executing: [/Users/xxx/Development/PenMobile.X/android/] /Users/xxx/Development/PenMobile.X/android/gradlew -Pverbose=true -Ptarget=lib/main.dart -Ptarget-platform=android-arm assembleRelease
[+1154 ms] 52 actionable tasks: 4 executed, 48 up-to-date
[ +21 ms] FAILURE: Build failed with an exception.
[ +2 ms] * What went wrong:
[ ] Execution failed for task ':app:lintVitalRelease'.
[ ] > Could not resolve all artifacts for configuration ':app:dynamicProfileRuntimeClasspath'.
[ ] > Could not resolve project :barcode_scan.
[ ] Required by:
[ ] project :app
[ ] > java.lang.NullPointerException (no error message)
[ ] * 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
[ +394 ms] Gradle task 'assembleRelease'... (completed)
[ +12 ms] "flutter apk" took 3,723ms.
Gradle task assembleRelease failed with exit code 1
#0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3)
#1 _buildGradleProjectV2 (package:flutter_tools/src/android/gradle.dart:395:5)
#2 buildGradleProject (package:flutter_tools/src/android/gradle.dart:296:14)
#3 buildApk (package:flutter_tools/src/android/apk.dart:41:10)
#4 BuildApkCommand.runCommand (package:flutter_tools/src/commands/build_apk.dart:43:11)
#5 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:375:18)
#6 _asyncThenWrapperHelper. (dart:async/runtime/libasync_patch.dart:77:64)
#7 _rootRunUnary (dart:async/zone.dart:1132:38)
#8 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#9 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#10 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#11 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#12 Future._complete (dart:async/future_impl.dart:476:7)
#13 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#14 _AsyncAwaitCompleter.complete. (dart:async/runtime/libasync_patch.dart:33:20)
#15 _rootRun (dart:async/zone.dart:1124:13)
#16 _CustomZone.run (dart:async/zone.dart:1021:19)
#17 _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
#18 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#19 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#20 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#21 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
`
This might be a problem with MTBBarcodeScanner, but I'm reporting it here just to be sure.
I've used this Flutter plugin and some barcodes on iOS have a random zero appearing in front of them. The problem isn't there on Android.
You can try to reproduce the problem by using this picture of an offending barcode with an iOS device.
When declared in pubspec.yaml together with connectivity package, causes error: "Waiting for observatory port to be available..." than crashes, when running on Android/Android Simulator. Works with no problem on iOS.
connectivity package: https://pub.dartlang.org/packages/connectivity
when i click "scan" the app has crashed.
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.met.metchain2/com.apptreesoftware.barcodescan.BarcodeScannerActivity}; have you declared this activity in your AndroidManifest.xml?
what that mean?
While building module 'barcode_scan' imported from /Users/ace/dev/flutter/gro/ios/Runner/GeneratedPluginRegistrant.m:6:
In file included from <module-includes>:1:
In file included from /Users/ace/Library/Developer/Xcode/DerivedData/Runner-emrtiqllpcjivvembdtxzijbcdvu/Build/Products/Debug-iphoneos/barcode_scan/barcode_scan.framework/Headers/barcode_scan-umbrella.h:15:
/Users/ace/Library/Developer/Xcode/DerivedData/Runner-emrtiqllpcjivvembdtxzijbcdvu/Build/Products/Debug-iphoneos/barcode_scan/barcode_scan.framework/Headers/BarcodeScanPlugin.h:12:1: error: retain'ed block property does not copy the block - use copy attribute instead [-Werror,-Wobjc-noncopy-retain-block-property]
@property(nonatomic, retain) FlutterResult result;
^
1 error generated.
/Users/ace/dev/project/appios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: could not build module 'barcode_scan'
#import <barcode_scan/BarcodeScanPlugin.h>
~~~~~~~^
2 errors generated.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v0.7.5, on Mac OS X 10.13.6 17G65, locale en-ID)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[✓] VS Code (version 1.26.1)
[✓] Connected devices (1 available)
For some reason, when I launch the scanner, it causes my navigation stack to pop at least one view. The back button then brings me to the start screen of my app. I'll investigate more, but I wanted to see if anyone else has witnessed this behavior.
... upon further investigation, this only affects iOS. It performs as expected on my Android app.
Here is the error that I am receiving, although I believe this is more indicative of a symptom of the problem (a widget being removed from the tree prematurely) rather than an indication of why it is happening in the first place.
Will continue to investigate.
#13 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:507:14)
#14 _InkResponseState.build. (package:flutter/src/material/ink_well.dart:562:30)
#15 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
#16 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9)
#17 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:204:7)
#18 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
#19 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:184:20)
#20 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:158:22)
#21 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:138:7)
#22 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:101:7)
#23 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:85:7)
#24 _invoke1 (dart:ui/hooks.dart:159:13)
#25 _dispatchPointerDataPacket (dart:ui/hooks.dart:113:5)
I have an issue where I am trying to scan a barcode which is directly underneath another barcode. One is a simple 1-D barcode (not the one I want) and the other is a 2-D PDF417 barcode.
Tested on samsung s8+
Hi, I have the need for continuous barcode scanning and this would be better viewed from a window, rather than full screen, so the user can see other widgets and information about the barcodes.
Is this something you would implement?
Cheers
I've been having trouble getting this to work on IOS (it works fine in Android).
I have added
<key>NSCameraUsageDescription</key>
<string>Camera permission is required for barcode scanning.</string>
to my info.plist.
I created the flutter project on windows in android studio, then git cloned it on my mac and tried to run the ios folder from there, but whenever I run it I get this error:
'barcode_scan/BarcodeScanPlugin.h' file not found
Is this a bug or am I doing something wrong?
Please help, I need this to work quite urgently.
Thanks.
`
What went wrong:
A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'.
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
`
I check the toolchains folder in my ndk path there is no mips64el-linux-android do you think barcodescanner use it ?
Hello,
First of all thank you for creating the library that allows us add the barcode scanner on our apps.
Although the library works perfect, I've noticed a little bit of lagging in the transition the current flutter screen and the barcode scanner.
Is this a bug? Can I override the animation to make the transition smoother?
Thank you in advanced,
Alex.
I've just upgraded my project to Flutter v0.5.9. My project can't compile by the error:
The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f.
Because bibomart depends on barcode_scan >=0.0.2 which requires SDK version <2.0.0, version solving failed.
pub get failed (1)
Please, update the SDK constraint of your library to support the latest version of flutter sdk. Thanks in advance.
This is my code:
String data = "";
try {
data = await BarcodeScanner.scan();
} on PlatformException catch ( e ) {
if ( e.code == BarcodeScanner.CameraAccessDenied ) {
_log.warning( "camera permission not granted" );
return;
}
else {
_log.warning( "$e" );
return;
}
} on FormatException {
// scan was canceled by user
_log.info( "scan canceled by user" );
return;
}
catch ( e ) {
_log.warning( "$e" );
return;
}
Pressing cancel when the camera is turned on, I expect the "FormatException". On Android this is working fine. On iOS, the flash is turned off, the camera screen is popped and the view is going back the the previous page as expected. But in the background the scanning is still active and the code above is still in line 3. When holding the phone over a QR code it is scanned successfully and the code above is continuing.
Tested with iOS 11.4 (15F79) on iPhone 5s and with iOS 12.1 (16B92) on iPhone 8.
Hello!
First of all, thank you for this wonderful Flutter package! I would like to know how I could manage to set the camera's focus mode? Is there a way to activate autofocus somehow?
Thanks in advance!
Mehdi
thanks for awesome plugin.
i have some error, after upgrade flutter . this is my version
Flutter 0.10.2 • channel beta • https://github.com/flutter/flutter.git Framework • revision d8cbb80206 (7 weeks ago) • 2018-10-26 01:30:21 -0400 Engine • revision 6c2ade9fa2 Tools • Dart 2.1.0-dev.8.0.flutter-bf26f760b1
and this is my code
Future _scanQR() async { print('func scanQR ==> access scan qr 2'); try { print(' try ==> '); String _qrscan = await BarcodeScanner.scan(); Map _map = json.decode(_qrscan); print('scan => '+ _qrscan); } on PlatformException catch (e){ print(' PlatformException ==> '+ e.toString()); if(e.code == BarcodeScanner.CameraAccessDenied){ // Navigator.pushNamed(context, '/dashboard'); toast.show( context: context, message: "Camera Permission is access denied.", status: "error", duration: new Duration(seconds: 3), position: new Offset(15.0, 100.0), ); } else { // Navigator.pushNamed(context, '/dashboard'); toast.show( context: context, message: "Unknown error: $e", status: "error", duration: new Duration(seconds: 3), position: new Offset(15.0, 100.0), ); } } on PlatformException { print(' PlatformException ==> '); // Navigator.pushNamed(context, '/dashboard'); toast.show( context: context, message: 'null (User returned using the "back"-button before scanning anything. Result)', status: "error", duration: new Duration(seconds: 3), position: new Offset(15.0, 100.0), ); } catch (e) { // Navigator.pushNamed(context, '/dashboard'); print(' Catch ==> '); print('Error : $e'); toast.show( context: context, message: 'Error : $e', status: "error", duration: new Duration(seconds: 3), position: new Offset(15.0, 100.0), ); } }
my problem is
=> code String _qrscan = await BarcodeScanner.scan();
cannot read my qrcode without any error prompted.
I/flutter (20956): Opened QrScan Widget I/flutter (20956): func scanQR ==> access scan qr 2 I/flutter (20956): try ==> I/Timeline(20956): Timeline: Activity_launch_request id:com.akak.cekakak time:145907690 D/PhoneWindow(20956): *FMB* installDecor mIsFloating : false D/PhoneWindow(20956): *FMB* installDecor flags : -2139029248 D/PhoneWindow(20956): *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null D/PhoneWindow(20956): *FMB* isFloatingMenuEnabled return false I/Timeline(20956): Timeline: Activity_idle id: android.os.BinderProxy@32016ee time:145907869 V/ActivityThread(20956): updateVisibility : ActivityRecord{86caa1c token=android.os.BinderProxy@3638afbb {com.akak.cekakak/com.akak.cekakak.MainActivity}} show : false W/art (20956): Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[17,tid=21064,Native,Thread*=0x9bda6400,peer=0x12de20a0,"Thread-10171"] D/InputMethodManager(20956): windowDismissed mLockisused = false I/Choreographer(20956): Skipped 43 frames! The application may be doing too much work on its main thread. I/Choreographer(20956): Skipped 43 frames! The application may be doing too much work on its main thread. D/PhoneWindow(20956): *FMB* installDecor mIsFloating : false D/PhoneWindow(20956): *FMB* installDecor flags : -2139029248 D/PhoneWindow(20956): *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null D/PhoneWindow(20956): *FMB* isFloatingMenuEnabled return false I/Choreographer(20956): Skipped 42 frames! The application may be doing too much work on its main thread. I/Timeline(20956): Timeline: Activity_idle id: android.os.BinderProxy@fbfc987 time:145916258 D/InputMethodManager(20956): windowDismissed mLockisused = false
I think it is an important feature to be able to scan QR codes not only from the camera but also from an image that was previously taken or downloaded from the web.
One approach is to additionally use other libraries for iOS/Android that support this feature.
e.g. iOS and Android
The other way would be to kindly ask here and here if they could implement this feature. It doesn't seem to be a big deal but I might be overlooking something.
What do the maintainers of this library think of that?
Hi, I'm new to dart/flutter/mobile. I followed the example but I'm getting UnknownError : MissingPluginException ( No implementation found for method scan on channel com.appfreesofware.barcode_scan) when I click the scan button
I'm using the Simulator to test
$ flutter --version
Flutter 0.1.4 • channel beta • https://github.com/flutter/flutter.git
Framework • revision f914e701c5 (9 days ago) • 2018-02-19 21:12:17 +0000
Engine • revision 13cf22c284
Tools • Dart 2.0.0-dev.27.0-flutter-0d5cf900b0
Thanks in advance. I might be missing something so any pointers will be highly appreciated.
Is there a way to customize the camera screen with things like guideline and text?
I have a flutter project with this plugin in it. But when i try to build it using codemagic.io i get the following error:
> Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':barcode_scan' of type org.gradle.api.Project.
> Could not find method debugProvided() for arguments [file collection] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.```
And i cant find a workaround for it
Hi,
when I try to run on iOS simulator, receive this error:
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/edufolly/gigalink/sra/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'barcode_scan/BarcodeScanPlugin.h' file not found
#import <barcode_scan/BarcodeScanPlugin.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
How can I change the red color of the scanning line to green ?
The ability for the user to scan the barcode is awesome , but if this library can highlight the barcodes it is able to read in camera mode, plus user can tap on to select the desired barcode.
So essentially 2 feature request :
Example App and Library would be : https://pub.dartlang.org/packages/flutter_mobile_vision
Today I've updated Flutter and a bunch of packages.
barcode_scan
stopped working after this. When trying to build the project I get:
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
Finished with error: Exit code 255 from: /home/foo/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true foundation.foo.bar/com.apptreesoftware.barcodescan.BarcodeScannerActivity:
Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=foundation.foo.bar/com.apptreesoftware.barcodescan.BarcodeScannerActivity (has extras) }
Security exception: Permission Denial: starting Intent { act=android.intent.action.RUN flg=0x30000000 cmp=foundation.foo.bar/com.apptreesoftware.barcodescan.BarcodeScannerActivity (has extras) } from null (pid=4729, uid=2000) not exported from uid 10079
java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.RUN flg=0x30000000 cmp=foundation.foo.bar/com.apptreesoftware.barcodescan.BarcodeScannerActivity (has extras) } from null (pid=4729, uid=2000) not exported from uid 10079
at com.android.server.am.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1632)
at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:438)
at com.android.server.am.ActivityStarter.startActivityLocked(ActivityStarter.java:278)
at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:817)
at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:4532)
at com.android.server.am.ActivityManagerShellCommand.runStartActivity(ActivityManagerShellCommand.java:417)
at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:141)
at android.os.ShellCommand.exec(ShellCommand.java:96)
at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:15014)
at android.os.Binder.shellCommand(Binder.java:594)
at android.os.Binder.onTransact(Binder.java:492)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:4243)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2919)
at android.os.Binder.execTransact(Binder.java:697)
My AndroidManifest.xml
hasn't changed. I do not have the Kotlin stuff in my build.gradle
file.
What could cause this?
Flutter: 0.6.0
barcode_scan: 0.0.6
Dart: 2.1.0-dev
IGNORE THIS. FOUND ANOTHER QUESTION WITH THE ANSWER.
The sample shows the scanning area taking over the entire screen.
Can this be displayed in a container so I can show the results in real time?
If not, that's OK, I just can't tell because I'm too new at this.
TIA
Hi!
With the new version 0.0.6
I started having some problems only on iOS.
The first scan works fine, but when I press cancel or scan a QR Code, I receive the following messages:
[VERBOSE-2:engine.cc(158)] Could not prepare to run the isolate.
[VERBOSE-2:engine.cc(117)] Engine not prepare and launch isolate.
[VERBOSE-2:FlutterViewController.mm(411)] Could not launch engine with configuration.
Also, if I click on the camera screen, I can interact with the flutter app underneath, but only on iOS too.
Other issue is that on iOS most of the time is not even scanning anymore, I have to open and close the screen multiple times.
I recently upgraded flutter. When I do flutter run on my app with barcode_scan on Android I get the following message:
Finished with error: Exit code 1 from: /Users/arzacjj/Library/Android/sdk/platform-tools/adb -s ZX1G22CFX4 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez start-paused true edu.umich.mobile.pharm.managehf/com.apptreesoftware.barcodescan.BarcodeScannerActivity:
Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=edu.umich.mobile.pharm.managehf/com.apptreesoftware.barcodescan.BarcodeScannerActivity (has extras) }
java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.RUN flg=0x30000000 cmp=edu.umich.mobile.pharm.managehf/com.apptreesoftware.barcodescan.BarcodeScannerActivity (has extras) } from null (pid=15152, uid=2000) not exported from uid 10111
at android.os.Parcel.readException(Parcel.java:1684)
at android.os.Parcel.readException(Parcel.java:1637)
at android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:3137)
at com.android.commands.am.Am.runStart(Am.java:635)
at com.android.commands.am.Am.onRun(Am.java:388)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
at com.android.commands.am.Am.main(Am.java:121)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:262)
I already have the following in my AndroidManifest.xml:
<uses-permission android:name="android.permission.CAMERA" />
<activity android:name="com.apptreesoftware.barcodescan.BarcodeScannerActivity"/>
flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v0.5.8-pre.277, on Mac OS X 10.13.6 17G65, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Community Edition (version 2018.2.1)
[✓] Connected devices (1 available)
• No issues found!
From @BTPJ on August 30, 2018 6:45
URL: https://pub.flutter-io.cn/packages/barcode_scan/versions/0.0.6#-installing-tab-
Resolving dependencies of Podfile
[!] Unable to find a specification for MTBBarcodeScanner
depended upon by barcode_scan
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/resolver.rb:402:in `find_cached_set'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/resolver.rb:372:in `specifications_for_dependency'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/resolver.rb:177:in `search_for'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/resolver.rb:288:in `block in sort_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/resolver.rb:281:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/resolver.rb:281:in `sort_by'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/resolver.rb:281:in `sort_dependencies'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:53:in `block in sort_dependencies'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:70:in `with_no_such_dependency_error_handling'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:52:in `sort_dependencies'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:754:in `push_state_for_requirements'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:746:in `require_nested_dependencies_for'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:729:in `activate_new_spec'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:686:in `attempt_to_activate'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/resolver.rb:123:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:781:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:779:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:88:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:243:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:116:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41: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.5.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
Error output from CocoaPods:
↳
[!] `<PBXGroup UUID=`97C146E51CF9000F007C117D`>` attempted to initialize an object with an unknown UUID. `CF3B75C9A7D2FA2A4C99F110` for attribute: `children`. This can be the result of a merge and the unknown UUID is being discarded.
Error running pod install
Error launching application on iPhone 6s.
Copied from original issue: dart-lang/pub-dev#1567
The barcode scanner is not scanning code 39 barcode types. It is treating them as a different type and giving the result
Is it possible to use the front-facing camera to scan?
my code
try {
String barcode = await BarcodeScanner.scan();
return {
'status':200,
'msg':'扫码成功',
'result':barcode
};
} on PlatformException catch (e) {
print(e);
if (e.code == BarcodeScanner.CameraAccessDenied) {
return {
'status':200,
'msg':'没有相机权限',
'result':''
};
} else {
return {
'status':200,
'msg':'未知错误:${e.toString()}',
'result':''
};
}
} on FormatException{
return {
'status':200,
'msg':'用户取消',
'result':''
};
} catch (e) {
return {
'status':200,
'msg':'未知错误:${e.toString()}',
'result':''
};
}
}
Runner/info.plist
NSCameraUsageDescription
App需要您的同意,才能访问相机
call get error flutter: PlatformException(PERMISSION_NOT_GRANTED, null, null)
With a scan window and a scan line. barcodes should only scan if they intersect with the scan line.
I noticed that once the action returns, I can not properly display an alert dialog. I think it is being created, but not being displayed, since you can dismiss it by tapping outside of the invisible dialog window. I noticed this since I am working an a pull request that allows to handle if a user declines the permission request.
import 'dart:async';
import 'package:barcode_scan/barcode_scan.dart';
import 'package:flutter/material.dart';
void main() => runApp(
new MaterialApp(
home: new Scaffold(
appBar: new AppBar(
title: new Text('Barcode Scanner Example'),
),
body: new MyApp(),
),
),
);
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
String barcode = "";
@override
initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return new Center(
child: new Column(
children: <Widget>[
new Container(
child: new MaterialButton(onPressed: scan, child: new Text("Scan")),
padding: const EdgeInsets.all(8.0),
),
new Text(barcode),
],
),
);
}
Future scan() async {
String barcode = await BarcodeScanner.scan();
setState(() => this.barcode =
'The dialog is not being shown, even though you can dismiss it, if you tap somewhere outside of it...');
await showDialog(
context: context,
child: new AlertDialog(
title: new Text("TITLE"),
content:
new Text("TESTBODY"),
actions: <Widget>[
new FlatButton(
child: new Text('OK'),
onPressed: () {
Navigator.of(context).pop();
},
),
],
),
);
}
}
Hi,
I am using successfully this library to read qr codes from camera.
How can I do to open qr codes from file? Is it already supported/currently on developement?
Need to add Kotlin plugin in the root level build.gradle
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.4-3" // NEW. Add this line.
}
It will support 1D barcode ?
Thanks !
Seems like android version defaults to a low resolution for Samsung galaxy tab s2
Thank you for the useful flutter scanner package!
MTBBarcodeScanner and barcodescanner both support select or changing cameras.
I would like to request support for it please.
Works great! Not really an "issue", just some notes since I just got this working in Android and iOS. I'm using VS Code. For Android, I did the AndroidManifest, gradel, and pubspec edits, and installed the "Kotlin Language" extension (in VSCode), then "flutter packages get". Worked as expected in the simulator (qemu86). Flutter build and install to an Android also worked as expected for barcodes and QR codes. For iOS, updated info.plist. In VSCode, picked iOS simulator (part of Xcode). When run, gets "The user did not grant the camera permission!”. So I figured I'd just get it onto a device and see what happens. I connected an iPod Touch (iPhone without the phone), but "flutter doctor" doesn't fully see it and wants "brew install ideviceinstaller". Did this under ~/development (not VSCode's directory), but said it was already installed. Oh well. So I opened Xcode pointing to ...//ios/Runner.xcworkspace/. Now gets multiple warnings and errors, like MTBScanner.m out of date, needing team for signing, etc. Searched, and fixed these up, also addressing keys (, Allow Always), “ipod busy”, “setting up debugging”, etc. Finally, it built with 1 warning: something about wanting to remove unnecessary files and enable some warnings. Just let it continue and load onto the Touch. Starts up, and works!
So, thanks for a great package.
Feel free to mark as closed if this distorts any issue stats.
/Users/chengmingyong/flutter/bin/flutter --no-color packages get
Running "flutter packages get" in FlutterOSC...
Because flutter_osc depends on barcode_scan ^0.0.7 which doesn't match any versions, version solving failed.
pub get failed (1)
When using the BarcodeScanner.scan() method on the Huawai Mate 8, the automatic resolution detection sets the resolution too low, so no barcodes are found. Is there a way to set the resolution manually?
Our users will be scanning quite a few vertical mounted barcode stickers, and while testing our app out on location the other day I had to lock screen rotation of my Android phone at the OS level because I was unable to scan a barcode without the screen constantly rotating.
Is it possible to lock rotation of just the camera scanning? I would prefer to allow the user to use both landscape or portrait while using the app regularly.
For what it's worth I tried the following code on the screen that launched the scanning and while it locked that screen's orientation, it did not affect the camera itself:
SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, DeviceOrientation.portraitDown, ]);
In my dependencies, if I include both barcode_scan
and image_picker
, the project can not build.
flutter run
Launching lib/main.dart on Nexus 5 in debug mode...
Initializing gradle... 0.8s
Resolving dependencies... 0.9s
Running 'gradlew assembleDebug'...
Configuration 'compile' in project ':barcode_scan' is deprecated. Use 'implementation' instead.
/home/users/n.gendron/Flutter/image_picker_example/android/app/src/main/AndroidManifest.xml:28:13-35 Error:
Attribute meta-data#android.support.VERSION@value value=(25.4.0) from [com.android.support:design:25.4.0] AndroidManifest.xml:28:13-35
is also present at [com.android.support:appcompat-v7:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:26:9-28:38 to override.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.4.0) from [com.android.support:design:25.4.0] AndroidManifest.xml:28:13-35
is also present at [com.android.support:appcompat-v7:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:26:9-28:38 to override.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
Gradle build failed: 1
The host application needs to add the Camera permission to their app in order to make this plugin work. If we add it to the AndroidManifest.xml of our library, this permission gets merged into the packaged manifest automatically. This makes integration easier.
Hi there,
When I'm trying to tap back button in Android Emulator in scanning state, the app is crashing.
Or this happens only in Emulator ?
Sorry for my English, and sorry for no screens ;)
flutter run
Launching lib/main.dart on Nexus 5 in debug mode...
Initializing gradle... 0.8s
Resolving dependencies... 1.2s
Running 'gradlew assembleDebug'...
Configuration 'compile' in project ':barcode_scan' is deprecated. Use 'implementation' instead.
Built build/app/outputs/apk/debug/app-debug.apk (27.2MB).
Installing build/app/outputs/apk/app.apk... 9.1s
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.