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!

Комментарии • 122

  • @florisas.7557
    @florisas.7557 4 года назад +8

    thank you for actually talking into the microphone unlike those cowards who only show text on the screen

  • @hansanacham
    @hansanacham 5 лет назад +1

    love it worked with the first attempt thank you

  • @liorpolak1391
    @liorpolak1391 4 года назад

    Excellent tutorial. Explains short and to the point.

  • @phamhung4042
    @phamhung4042 4 года назад

    Thank you a lot. :3. It worked after 4 hours.

  • @aljhunvillanel1200
    @aljhunvillanel1200 6 лет назад +3

    Thank you for all the Tutorials.

  • @tjbihh
    @tjbihh 4 года назад

    Great tutorial - really helpful. Thank you!

  • @darkwatboy
    @darkwatboy 5 лет назад +7

    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?

  • @jelle9880
    @jelle9880 4 года назад +7

    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!

  • @LahiruSamaraweera
    @LahiruSamaraweera 5 лет назад

    Thanks for this tutorial... Was so helpful.

  • @smartlifestyle8079
    @smartlifestyle8079 6 лет назад +1

    i love you!!!
    thanks for the tutorial!!!!!!!!

  • @user-su4yk5ph6v
    @user-su4yk5ph6v 4 года назад

    Thank you for the lesson!

  • @alphabetical2671
    @alphabetical2671 6 лет назад

    This is awesome your tutorials are amazing can you cover transition in flutter

  • @kui1234
    @kui1234 6 лет назад

    Nice Tutorials. Just wonder what is the colour theme you are using. Thanks

  • @user-rb6uu5ew6f
    @user-rb6uu5ew6f 3 года назад

    Thank you very much, it's very helpful.

  • @franciscoleal_
    @franciscoleal_ 4 года назад

    which color plugin do you use in the editor?
    I liked the colors!!

  • @oscargrandan
    @oscargrandan 3 года назад

    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

  • @markangelogonzales4289
    @markangelogonzales4289 4 года назад

    Wow nice tutorial and you have a great test on IDE color scheme , may i know what color scheme your using?

  • @viru11uppal
    @viru11uppal 5 лет назад +1

    thanks for the tutorial, can you make a tutorial to add a search bar to enter barcode manually in barcode scanning widget. Thanks again

  • @suriyakannimuthu354
    @suriyakannimuthu354 4 года назад

    Amazing! Cool video! working!

  • @maisiebrooke1417
    @maisiebrooke1417 2 года назад

    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!

  • @kelryfernandes4824
    @kelryfernandes4824 4 года назад

    how to customize the camera layout? include background, text and control reader size?

  • @satyamgupta756
    @satyamgupta756 4 года назад

    Nice Tutorial Buddy

  • @SyntharaPrime
    @SyntharaPrime 5 лет назад

    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.

  • @ShivamKumar-ec4yu
    @ShivamKumar-ec4yu 5 лет назад

    Great tutorial !!!

  • @juliocgfreitas
    @juliocgfreitas 5 лет назад

    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.

  • @AlexGonzalezenlinea
    @AlexGonzalezenlinea 4 года назад

    men, you are awesome thank

  • @arifwibowo7447
    @arifwibowo7447 5 лет назад

    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.

  • @josecoverlessons
    @josecoverlessons 4 года назад

    Thank you so much

  • @glenwinbernabe8937
    @glenwinbernabe8937 6 лет назад

    hello, how can I create my camera when scanning in barcode like that, i mean the size.

  • @Manuel-dc7im
    @Manuel-dc7im 5 лет назад

    IS there any opinion to scan a picture orc and qr?

  • @santiagososa2540
    @santiagososa2540 4 года назад

    i need custom window in scan. i need change the message to show and delete flash option. can you help me with this?

  • @aliburhangul1
    @aliburhangul1 2 года назад

    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

  • @zhangkevin8147
    @zhangkevin8147 4 года назад

    Nice share ,can you share your vscode theme ,it looks so beautiful.

  • @prakashs9353
    @prakashs9353 4 года назад

    why you use platformexception in this app.and why the exception required?

  • @rekhakanungo6779
    @rekhakanungo6779 3 года назад

    Can we zoom in and zoom out using this barcode scanner library ?

  • @lordeloalvaro
    @lordeloalvaro 5 лет назад

    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

  • @jeanbarreiro_
    @jeanbarreiro_ 5 лет назад +1

    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."

  • @AndreaGrippi
    @AndreaGrippi 6 лет назад +5

    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

    • @Saradomin65
      @Saradomin65 4 года назад +1

      It's been a year mate, have you found a solution yet?

  • @MrVivekkumarpal
    @MrVivekkumarpal 5 лет назад

    Please make video for parallax effect

  • @mohammadimran2219
    @mohammadimran2219 3 года назад

    which vscode theme are you using?

  • @phamthanhduong74
    @phamthanhduong74 3 года назад

    can you create video flutter app with soap webservice??. thanks.

  • @nugastudio9125
    @nugastudio9125 4 года назад

    How to enable permission access camera in WebView flutter ?

  • @jasneetsingh4018
    @jasneetsingh4018 6 лет назад

    please teach how to make a dashboard in flutter? please make a video on analytics dashboard like instagram has.

  • @akhanremtulla2493
    @akhanremtulla2493 Год назад

    how to show scanning camera in some container size ??

  • @mcperera
    @mcperera 5 лет назад

    How to launch that URL after scan the QR code? Please help me.

  • @arnavsharma7495
    @arnavsharma7495 5 лет назад

    Hello Sir....Please create a video for phone otp verification.

  • @ashokkoda2959
    @ashokkoda2959 5 лет назад

    Please do video for barcode scanncer with firebase

  • @muhamadivandazulfikar3820
    @muhamadivandazulfikar3820 5 лет назад

    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

    • @mamadoualioubah1186
      @mamadoualioubah1186 5 лет назад

      i worked for you?cool but i have issues can you give me you repo?

  • @imadfakhry5788
    @imadfakhry5788 5 лет назад +1

    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.

  • @RanjiRajesh
    @RanjiRajesh 4 года назад

    The function 'MyApp' isn't defined

  • @andyhui95
    @andyhui95 3 года назад

    * 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 ?

  • @nishtha7597
    @nishtha7597 4 года назад

    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

  • @bachbonglong2830
    @bachbonglong2830 5 лет назад +2

    How could custome design screen scanner ??

  • @andreww406
    @andreww406 4 года назад

    hi ! how i must to test this app ???? what i must to scan? any qr ?

  • @mamadoualioubah1186
    @mamadoualioubah1186 5 лет назад +1

    this is not working for me the reference in xml file is not working and making isues in my projet

  • @smarpitsingh
    @smarpitsingh 6 лет назад +1

    Is it better than Java/kotlin for android?

    • @Rassy_
      @Rassy_ 6 лет назад

      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

  • @creative-commons-videos
    @creative-commons-videos 5 лет назад

    when i scan aadhar card it only shows some random digit as result like 1458795

    • @HelloCodepur
      @HelloCodepur  5 лет назад

      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

  • @user-vr9np6ye2w
    @user-vr9np6ye2w 4 года назад +3

    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' .

    • @jeffreynelson-cofie4094
      @jeffreynelson-cofie4094 3 года назад +1

      I am experiencing the same error how did you solve it

    • @OGIMxGaMeR
      @OGIMxGaMeR 3 года назад

      Any solution?

    • @SimpleInChaos
      @SimpleInChaos 3 года назад +1

      @@OGIMxGaMeR You can cast if! Just type String qrResult = await (BarcodeScanner.scan()) as string;

    • @HelloCodepur
      @HelloCodepur  3 года назад

      it returns a list

    • @user-vr9np6ye2w
      @user-vr9np6ye2w 3 года назад

      @@SimpleInChaos @MTECHVIRAL is right

  • @sonikapunitgoyal4481
    @sonikapunitgoyal4481 5 лет назад

    when i click scann...device connection lost..pls any solution?

    • @juliocgfreitas
      @juliocgfreitas 5 лет назад +1

      Do you fix this error? I've got the same :(

  • @ThisRandomFacts
    @ThisRandomFacts 5 лет назад

    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

    • @a.davidoyerinde7068
      @a.davidoyerinde7068 5 лет назад +1

      I encountered this same error. You can use barcode_scan: ^0.0.4 instead in your Pubspec.yaml instead.

    • @paulnoris4461
      @paulnoris4461 5 лет назад

      Its working fine by adding android.enableJetifier=true and android.useAndroidX=true in build project and change the classpath to 3.3.1

    • @juliocgfreitas
      @juliocgfreitas 5 лет назад

      @@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

  • @vishalsardar9064
    @vishalsardar9064 4 года назад

    Error: A value of type 'ScanResult' can't be assigned to a variable of type 'String'.
    How to solve this error..

    • @vedantyelsangikar8581
      @vedantyelsangikar8581 4 года назад

      Add version 0.0.8

    • @Mfbzai
      @Mfbzai 3 года назад +1

      @@vedantyelsangikar8581 Damn, its works. Thanks dude

  • @PhilRoggenbuck
    @PhilRoggenbuck 4 года назад

    Video begins 2:30

  • @MrLion22
    @MrLion22 4 года назад +2

    this does not work ... the library is buggy ... no matter which version you use, it will not work

  • @armandozabala
    @armandozabala 6 лет назад

    I have a problem mac os , i dont run flutter doctor, appear Waiting for another flutter command to release the startup lock...

    • @HelloCodepur
      @HelloCodepur  6 лет назад

      That means some flutter related operation is already happening.

    • @armandozabala
      @armandozabala 6 лет назад

      but Flutter doctor no respond, flutter create no respond.... is so slow

    • @HelloCodepur
      @HelloCodepur  6 лет назад

      May be there can be some issues with your configuration? Can I know your machine specs?

    • @armandozabala
      @armandozabala 6 лет назад

      iMac (21.5-inch, Mid 2011) 16 GB 1333 MHz DDR3 2,7 GHz Intel Core i5

    • @armandozabala
      @armandozabala 6 лет назад

      Android SDK 27

  • @sahanadevi5
    @sahanadevi5 4 года назад

    while clicking the scan button,the app will be crashed

  • @barfbarfomellow2836
    @barfbarfomellow2836 4 года назад

    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."

    • @rosmerymamani4220
      @rosmerymamani4220 4 года назад +1

      barcode_scan: ^0.0.8, con esto funciona
      acabo de hacer prueba

    • @jasonwei6722
      @jasonwei6722 4 года назад +1

      the new version of barcode_scan is built in Kotlin, so you need create the fluter project with "flutter create -a kotlin project_name"

    • @ethiojoke350
      @ethiojoke350 4 года назад

      @@rosmerymamani4220 gracias realmente me ayudó!!!

  • @bikashgurung921
    @bikashgurung921 5 лет назад

    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?

    • @bibash3128
      @bibash3128 5 лет назад

      this does not work in android... Use this package => fast_qr_reader_view

    • @juliocgfreitas
      @juliocgfreitas 5 лет назад

      @@bibash3128 Could you explain how to?

  • @JohnDoe-fv5cu
    @JohnDoe-fv5cu 4 года назад +1

    It doesn't work anymore

    • @CarbonMagnets
      @CarbonMagnets 4 года назад

      github.com/apptreesoftware/flutter_barcode_reader/issues/97

  • @vidorvistrom5299
    @vidorvistrom5299 5 лет назад +1

    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

  • @vidorvistrom5299
    @vidorvistrom5299 5 лет назад +1

    Tested on IOS?

    • @HelloCodepur
      @HelloCodepur  5 лет назад +1

      yes

    • @vidorvistrom5299
      @vidorvistrom5299 5 лет назад +1

      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.

    • @HelloCodepur
      @HelloCodepur  5 лет назад +1

      Yes I am using this

    • @vidorvistrom5299
      @vidorvistrom5299 5 лет назад +1

      MTechViral Perfect then. Will toast you a thanks some day for sure. Keep it up brother and build the community

  • @flutterflowexpert
    @flutterflowexpert 4 года назад

    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

  • @tatram7463
    @tatram7463 3 года назад

    Que Dios nos perdone.

  • @Mohith7548
    @Mohith7548 6 лет назад

    Please make tutorials with less time.Everyone already knows about the basic stuff. Please make videos shorter

    • @HelloCodepur
      @HelloCodepur  6 лет назад +6

      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.

    • @Mohith7548
      @Mohith7548 6 лет назад +1

      MTechViral yeah I understand bro this tutorial need explanation. Thanks for the grat video

    • @vivekbagdai
      @vivekbagdai 6 лет назад

      Thanks

    • @Rassy_
      @Rassy_ 6 лет назад

      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

    • @mamadoualioubah1186
      @mamadoualioubah1186 5 лет назад

      maybe you know about the basics not everyone