In this Flutter Tutorial we will learn How to implement QR Code Scanner or Bar code scanner in our Flutter App.
so to make this work we gonna use flutter library called QRSCAN
Introduction on QR Code Scanner Flutter
When it comes to barcode scanner each QR or bar code will contain uinque identity number that are used to identify the product. Using this QR code scanner, flutter app you will be able to find out the data value stored in that bar code or QR code.
In the end of this tutorial, our Flutter app will be able to scan both Barcode as well as QRCode.
Then now Let’s begin implementing QR Scan flutter library
DEMO
Video Tutorial
QR Code scanner in flutter development with Example
A Flutter plugin to scanning. Ready for Android and iOS devices
Step 1 : Add QR Scanner Dependencies in pubspec.yaml file
To make use of this library you need to add the library into your flutter project, to do so you need to add required dependencies in pubspec.yaml file.
dependencies:
qrscan: ^0.2.17
Step 2 : Add Camera Permission for Android
offcourse to make use of any physical device of mobile you firstly need to ask for the permission from the user.
under your project open android > app > src > main > AndroidManifest.xml and just add the below permissions.