how to scan bar code specific format flutter - flutter

How can disable QR code and scan only bar code type in flutter. In flutter bar code it is also scanning QR code then can disable QR code scanning
I have tried with scanner package but it is scanning QR code with bar code. I want to scan only qr code

try this package for both QR code and barcode ai_barcode

Related

How to customize the Flutter barcode scanner

I'm using the Flutter barcode scanner. What I'm able to achieve is like
But what I need is like this.
Same question was asked here. How to make a customised QR Code Scanner using Flutter?. But I want to customize using the same Flutter barcode scanner package. Can anyone help me with this.
My code is
String barcodeScanRes = await FlutterBarcodeScanner.scanBarcode(
'#00FFB6',
'Exit',
true,
ScanMode.QR,
);
You can use qr_code_scanner 1.0.1 which give you ability to customize your scanner as shown below

iOS 16 barcode not scanning properly

I've a QR code & barcode scanning native iOS app which was working properly before iOS 16. After iOS 16 release, the bar code scanning happens only when positioning the bar code at the bottom part of the rectOfInterest.
Right now I've defined the metadatObjectTypes as below:
captureMetadataOutput.metadataObjectTypes = [.qr, .ean13, .ean8, .aztec, .upce, .code39, .code39Mod43, .code93, .upce, .interleaved2of5, .itf14, .code128, .pdf417]
But the bar code scanner is working properly (it scans everywhere inside the rectOfInterest) if we set scanner's metadataObject type omitting QR code type (.qr) as below but it results in not scanning the QR code.
Have referred the below two links where they are trying to scan either of the bar codes but not both types:
https://developer.apple.com/forums/thread/714341
https://developer.apple.com/forums/thread/715055
As I couldn't find the solution for this issue, someone kindly suggest the possible fix for scanning both QR and barcode types.

How to save QR Scan details to listview using flutter?

I am currently building a QR Scanner App using flutter.  There I want to know how to scan a QR Code and save it permanently(using shared preferences) with the Details button.  Give me an example of this (there is no need to scan a Qr, there is only a simple text title and a description of how to save a circle avater).
image for example

How to save bar code scanned image when read code

I used qrscan plugin for bar code scanning. I want to capture & save image of barcode simultaneously read the code.
Scan QR Code from your lib qrscan
Read QR code from image as String
add New Lib QR code genrator from String qr
save genrated image in your local storage

ZXing only recognizes QR-Code

I am trying to develop a barcode scanner for google glass (don't judge) using the ZXing library.
Scanning QR-Codes works perfectly fine, but I can't scan any 1D-barcodes.
This is my code:
Intent intent = new Intent(this, CaptureActivity.class);
//intent.putExtra("SCAN_MODE", "PRODUCT_MODE"); //doesn't work with or without this line
startActivityForResult(intent, SCAN_REQUEST);
Here is an example (EAN-8):
Scanning this with a scanner from the PlayStore works on my phone, but not using my app on the glass.
I found a workaround for my problem in the DecodeRunnable.java.By adding BarcodeFormat.EAN_8 to the list in the code below I was able to scan the barcode.
DecodeHandler() {
hints = new EnumMap<>(DecodeHintType.class);
hints.put(DecodeHintType.POSSIBLE_FORMATS,
Arrays.asList(BarcodeFormat.AZTEC, BarcodeFormat.QR_CODE, BarcodeFormat.DATA_MATRIX));
}
You are wellcome to post your answers, because I believe there is a better way to solve this.