quick_qr 1.0.2 quick_qr: ^1.0.2 copied to clipboard
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.
Parameter | Type | Working | Default value |
---|---|---|---|
onDetect(barcode){} |
required |
When a barcode is detected successfully then the barcode data will be available in this function. |
_ |
immersive |
optional |
_ | true |
stopOnFound |
optional |
If TRUE, then the scanner window will close automatically. | false |
resolution |
optional |
Affect the quality of video recording and image capture | ResolutionPreset.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{
...
}
Parameter | Type |
---|---|
barcode.value |
A barcode value depending on the [BarcodeType] type set. |
barcode.type |
The format type of barcode. |
barcode.rawValue |
A barcode value as it was encoded in the barcode. |
barcode.rawBytes |
Barcode bytes as encoded in the barcode. |
barcode.format |
The format (symbology) of the barcode value. |
barcode.displayValue |
A 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. |