quick_qr 1.0.2

SDKflutter
Platformandroidios

A flutter plugin for scanning qr code in Android & iOS.

A flutter plugin for scanning qr code in Android & iOS.

CameraSource class’s required and optional parameters and functions.

ParameterTypeWorkingDefault value
onDetect(barcode){}requiredWhen a barcode is
detected successfully then
the barcode data will
be available in this
function.
_
immersiveoptional_true
stopOnFoundoptionalIf TRUE, then the scanner window will close automatically.false
resolutionoptionalAffect the quality of video recording and image captureResolutionPreset.high

Usage

import 'package:quick_qr/quick_qr.dart';

Navigator.of(context).push(
              MaterialPageRoute(
                maintainState: false,
                builder: (context) {
                  return CameraSource(
                    immersive: false,
                    stopOnFound: true,
                    onDetect: (barcode) async {
                    //DO YOUR STUFF WITH THE BARCODE DATA
                    },
                  );
                },
              ),
            );

Detected QrCode data

onDetect: (barcode) async{
    ...
}
ParameterType
barcode.valueA barcode value depending on the [BarcodeType] type set.
barcode.typeThe format type of barcode.
barcode.rawValueA barcode value as it was encoded in the barcode.
barcode.rawBytesBarcode bytes as encoded in the barcode.
barcode.formatThe format (symbology) of the barcode value.
barcode.displayValueA barcode value in a user-friendly format.
This value may be multiline,
for example, when line breaks
are encoded into the original
TEXT barcode value. May include
the supplement value.

License

MIT