visionsdkflutterpackage 0.0.1
SDKflutter
Platformandroidioswindowslinuxmacosweb
a flutter project to scan Barcodes and Qrcodes
A custom code to scan qrcodes and barcodes
Features
it'll allow you to scan the qrcodes and barcodes
Getting started
import the packaage and use it in your app.
import 'package:visionsdkflutterpackage/visionsdkflutterpackage.dart';
Usage
There are a number of properties that you can modify:
height width title subtitle gradient (color1 and color2)
Widget build(BuildContext context) {
const String viewType = 'com.example/native_view';
return Scaffold(
body: Stack(
children: [
UiKitView(
viewType: viewType,
layoutDirection: TextDirection.ltr,
creationParamsCodec: const StandardMessageCodec(),
),
Positioned(
left: 0,
right: 0,
bottom: 10,
child: Container(
alignment: Alignment.bottomCenter,
padding: const EdgeInsets.all(16),
child: Container(
width: double.infinity,
color: Colors.white,
padding: const EdgeInsets.all(16),
child: Column(
children: [
Text(
'Detect Type--> : $detectedType',
style: const TextStyle(color: Colors.black, fontSize: 16),
),
Text(
'Scanned Code--> : $scannedCode',
style: const TextStyle(color: Colors.black, fontSize: 16),
),
ElevatedButton(
onPressed: () => changeCaptureMode('auto'),
child: const Text('Change Capture Mode to Auto'),
),
ElevatedButton(
onPressed: () {
changeCaptureMode('manual');
updateCaptureMode(true);
},
child: const Text('Change Capture Mode to Manual'),
),
ElevatedButton(
onPressed: () => changeScanMode('qrcode'),
child: const Text('Change Scan Mode to QR Code'),
),
ElevatedButton(
onPressed: () => changeScanMode('barcode'),
child: const Text('Change Scan Mode to Barcode'),
),
ElevatedButton(
onPressed: () => changeScanMode('ocr'),
child: const Text('Change Scan Mode to OCR'),
),
if (isManualCaptureMode)
ElevatedButton(
onPressed: () {
capture();
},
child: const Text('Capture Photo'),
),
],
),
),
),
),
],
),
);
}
Additional information
users cann import this package to scan any barcode and qr code