simple_barcode_scanner that let you scan barcode and qr code in mobile,web and windows.
Android | IOS |
---|---|
Window | Web |
---|---|
simple_barcode_scanner: ^0.0.8
Import the library:
import 'package:simple_barcode_scanner/simple_barcode_scanner.dart';
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'),
)
Feel free to fork and send pull request. If you have any questions, feedback or ideas,You can create an issue. If you enjoy this project, I'd appreciate your 🌟 on GitHub.