Flutter: QR Code Scanner App | Barcode Scan
HTML-код
- Опубликовано: 25 май 2018
- In this video, I will explain how to implement QR code or barcode scanning in our Flutter App.
Give star for this project on git and like the video.
Source Code - github.com/iampawan/FlutterQR...
Flutter Example Apps - goo.gl/8hZQkq
Instagram - / codepur_ka_superhero
FB Group - goo.gl/hwnX2F
Be sure to ask for help in the comments if you need any. Suggestions for future Flutter tutorials are also very welcome! :)
Flutter is an SDK owned by Google to create applications for Android and iOS using a single codebase. Flutter uses the Dart programming language (also owned by Google). Flutter was in beta when I released this video, so things might still change a bit. But the SDK is already mature enough to write some cool production apps!
Please Subscribe my channel to motivate me .
Subscribe Our Channel : goo.gl/BlFui4
For Fun - ruclips.net/channel/UC6i0...
Connect with us on social media:
Facebook: / mtechviral
Pawan Kumar - / imthepk
Ask Pawan Kumar - / thepawankumaar
Instagram - / codepur_ka_superhero
Twitter: / imthepk
LIKE | SHARE | SUBSCRIBE FOR MORE VIDEOS LIKE THIS
THANKS FOR WATCHING!
thank you for actually talking into the microphone unlike those cowards who only show text on the screen
love it worked with the first attempt thank you
Excellent tutorial. Explains short and to the point.
Thank you a lot. :3. It worked after 4 hours.
Thank you for all the Tutorials.
Your welcome
Great tutorial - really helpful. Thank you!
First of all, thank you for the details explanation of flutter. I would like to ask if there are any chances that if my QR code could link to the internet?
Thank you, this is what I needed!!
Also, what vscode theme do you use? It's pleasing to the eye and I want to use it as well!
Thanks for this tutorial... Was so helpful.
i love you!!!
thanks for the tutorial!!!!!!!!
Thank you for the lesson!
This is awesome your tutorials are amazing can you cover transition in flutter
Nice Tutorials. Just wonder what is the colour theme you are using. Thanks
Thank you very much, it's very helpful.
which color plugin do you use in the editor?
I liked the colors!!
Thanks for the video, i want to know if you can do a tutorial with the 3.0.1 version of the plugin, it was updated recently
Wow nice tutorial and you have a great test on IDE color scheme , may i know what color scheme your using?
thanks for the tutorial, can you make a tutorial to add a search bar to enter barcode manually in barcode scanning widget. Thanks again
Amazing! Cool video! working!
Hi Pawan! Thank you for your video! My camera is scanning the barcode however it displays 'Instance of 'Future ' rather than the data from the barcode for some reason. Do you have any idea why this may be? Thank you!
how to customize the camera layout? include background, text and control reader size?
Nice Tutorial Buddy
Hi Pawan Kumar,
I really thank you so much for all videos,codes etc. I watched lots of videos about Flutter but your explanations really different and very clear. Thank you again.
I have a request from you. I did a lot of research, but I couldn't find a bluetooth video or tutorials on Flutter. I'd really appreciate it if you could take a video about Bluetooth.
I tried the package of pauldemarco / flutter_blue but could not succeed.
My goal is to connect to a bluetooth printer and get simple printouts from it.
Thanks in advance.
Great tutorial !!!
Great tutorial. Fine thank you. I've got some problem and fix it. Now I'm having a problem "Device Lost Connection" (Android) when I push Scan... Do you know how to solve? Cheers.
men, you are awesome thank
I get an issue when i press the back button, could you help please?
i'm using another function too which using async 'await http.get' on it. I don't know why if i declare that function even i never call it, the scanner is always get error(Blank like on your tutorial) when i press the back button, but it's works fine if i scan the barcode and get the value of the barcode.
Thank you so much
hello, how can I create my camera when scanning in barcode like that, i mean the size.
IS there any opinion to scan a picture orc and qr?
i need custom window in scan. i need change the message to show and delete flash option. can you help me with this?
Greetings, I want to read the barcode and get a picture of the read barcode while counting the warehouse. how can I do that ? can you help me if possible
Nice share ,can you share your vscode theme ,it looks so beautiful.
why you use platformexception in this app.and why the exception required?
Can we zoom in and zoom out using this barcode scanner library ?
Do you know what's wrong here?
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list
i am getting Execution failed for task ':app:preDebugBuild'.
> Android dependency 'androidx.appcompat:appcompat' has different version for the compile (1.0.0) and runtime (1.0.2) classpath. You should manually set the same version via DependencyResolution
"The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app."
How could I read a qr code from a file? I know I could do it natively in Android/iOS, but I'm trying to find a way of doing it in Flutter/Dart
It's been a year mate, have you found a solution yet?
Please make video for parallax effect
which vscode theme are you using?
can you create video flutter app with soap webservice??. thanks.
How to enable permission access camera in WebView flutter ?
please teach how to make a dashboard in flutter? please make a video on analytics dashboard like instagram has.
how to show scanning camera in some container size ??
How to launch that URL after scan the QR code? Please help me.
Hello Sir....Please create a video for phone otp verification.
Please do video for barcode scanncer with firebase
Hi, Pawan Kumar. I tried your code and works perfectly. But how to switch the camera to my front camera. Do you have the way to do that? Thanks in advance
i worked for you?cool but i have issues can you give me you repo?
Hi Pawan, Thank you for taking the time to make and publish this video. It is very well done and very helpful. However, When I ran the app I noticed that the QR code was scanning but not the 2D codes. Can you confirm that the app is capable of scanning the 2D barcodes? If so, am I overlooking some certain setup? I really appreciate your answer. Thank you again.
yes 2d barcodes works as well
The function 'MyApp' isn't defined
* What went wrong:
Execution failed for task ':app:preDebugBuild'.
Android dependency 'androidx.appcompat:appcompat' has different version for the compile (1.0.0) and runtime (1.0.2) classpath.
anyone facing this error ?
Getting errors in AndroidMainFest.xml file android:name=".MainActivity" android:name="io.flutter.app.FlutterApplication" these 2 lines are red and preventing to run App i tried to copy the code of this file from your github but these errors are cooming again
How could custome design screen scanner ??
great question
I'm looking for it now. Do you know?
hi ! how i must to test this app ???? what i must to scan? any qr ?
Yes any qr
this is not working for me the reference in xml file is not working and making isues in my projet
The same as mine
Did you solve it?
Is it better than Java/kotlin for android?
That,s My channel development is pretty fast to me compared to kotlin/java. For example in creating tabs with native you have to create a n XML file, the main java/kotlin file, an adapter,etc. But with flutter its just a widget with a tabcontroller. Probably in native you could do more custom stuff with it but the development in flutter is just fast especially with the hot reload feature
when i scan aadhar card it only shows some random digit as result like 1458795
Aadhar Card is not supposed to be scanned with this though but text recognition should work. May be it's not stable yet. I'll check it out soon. Thanks for the feedback
Problem in the line >>>
String qrResult = await BarcodeScanner.scan();
Line 24 or 25
Error: A value of type 'ScanResult' can't be assigned to a variable of type 'String' .
I am experiencing the same error how did you solve it
Any solution?
@@OGIMxGaMeR You can cast if! Just type String qrResult = await (BarcodeScanner.scan()) as string;
it returns a list
@@SimpleInChaos @MTECHVIRAL is right
when i click scann...device connection lost..pls any solution?
Do you fix this error? I've got the same :(
Hi, really good tutorial. But I am having this problem and I cant fin the answers in google of how to solve it !
Android dependency 'androidx.vectordrawable:vectordrawable' has different version for the compile (1.0.0) and runtime (1.0.1) classpath.
can you please help
I encountered this same error. You can use barcode_scan: ^0.0.4 instead in your Pubspec.yaml instead.
Its working fine by adding android.enableJetifier=true and android.useAndroidX=true in build project and change the classpath to 3.3.1
@@paulnoris4461 Fine fine thank you. Works for me! I follow this tutorial based on your answer. flutter.dev/docs/development/packages-and-plugins/androidx-compatibility ! Cheers man. And Cheers MTechViral
Error: A value of type 'ScanResult' can't be assigned to a variable of type 'String'.
How to solve this error..
Add version 0.0.8
@@vedantyelsangikar8581 Damn, its works. Thanks dude
Video begins 2:30
this does not work ... the library is buggy ... no matter which version you use, it will not work
do you fix that?
I have a problem mac os , i dont run flutter doctor, appear Waiting for another flutter command to release the startup lock...
That means some flutter related operation is already happening.
but Flutter doctor no respond, flutter create no respond.... is so slow
May be there can be some issues with your configuration? Can I know your machine specs?
iMac (21.5-inch, Mid 2011) 16 GB 1333 MHz DDR3 2,7 GHz Intel Core i5
Android SDK 27
while clicking the scan button,the app will be crashed
I follow the tutorial and restart the app just like at 23 :00 min and the my build gradle build fails : "The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app."
barcode_scan: ^0.0.8, con esto funciona
acabo de hacer prueba
the new version of barcode_scan is built in Kotlin, so you need create the fluter project with "flutter create -a kotlin project_name"
@@rosmerymamani4220 gracias realmente me ayudó!!!
In android it works as fine but in ios device when i click in scan button the app get closed. Guys is there any solution?
this does not work in android... Use this package => fast_qr_reader_view
@@bibash3128 Could you explain how to?
It doesn't work anymore
github.com/apptreesoftware/flutter_barcode_reader/issues/97
I figured out why it didn't run on IOS simulator. Turns out there is no camera application in the IOS simulator for any version of IOS
Tested on IOS?
yes
MTechViral bro are you 1000% sure it works on ios? I have a deadline to submit a project. I am relying on you for this.
Yes I am using this
MTechViral Perfect then. Will toast you a thanks some day for sure. Keep it up brother and build the community
1Go to your dependences and add this just for temporary we are waiting to have a new release
barcode_scan:
git: github.com/apptreesoftware/flutter_barcode_reader.git
2 Add this in grandle.properties:
android.useAndroidX=true
android.enableJetifier=true
3. Update your buildscript in build.gradle with ext.kotlin_version = '1.3.0'
4.Use Gradle com.android.tools.build:gradle:3.3.0
Que Dios nos perdone.
Please make tutorials with less time.Everyone already knows about the basic stuff. Please make videos shorter
You know doesnt mean everyone knows . i know about the audience bro . It may be possible that someone is watching the video for the first time so I cannot make prediction about that. I hope you can understand.
MTechViral yeah I understand bro this tutorial need explanation. Thanks for the grat video
Thanks
MTechViral thanks on helping us guys that can't quite get readable documentation. I think you could have a playlist for beginners, intermediate and advanced it would be much better
maybe you know about the basics not everyone