simple_barcode_scanner 0.0.2 simple_barcode_scanner: ^0.0.2 copied to clipboard
Scanner plugin for Barcode/QR code. Scan using flutter_barcode_scanner for mobile device and html5-qrcode for web and windows
simple_barcode_scanner #
simple_barcode_scanner let you scan barcode and qr code.
Demo #
Web | Mobile |
---|---|
Features #
- Scan barcode in mobile devices using flutter_barcode_scanner
- Scan barcode in web/window using html5-qrcode package
Installation and configuration #
- Mobile device uses flutter_barcode_scanner. refer flutter_barcode_scanner for installation and setup
- Web and window uses html5-qrcode. Setup is not required. For more you can read html5-qrcode
Getting started #
simple_barcode_scanner: ^0.0.2
Import the library:
import 'package:simple_barcode_scanner/simple_barcode_scanner.dart';
Usage #
ElevatedButton(
onPressed: () async {
var res = await Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const SimpleBarcodeScannerPage(),
));
setState(() {
if (res is String) {
result = res;
}
});
},
child: const Text('Open Scanner'),
)
Todo #
- Flash and switch camera are only available in mobile devices
- Enhancement
If you have any questions, feedback or ideas, feel free to create an issue. If you enjoy this project, I'd appreciate your 🌟 on GitHub.