KO
|
EN
gitlite — search
Search
#ai-agents
#typescript
#ai
#dsh-plugin
#deepseek-harness
#cli
#open-source
#claude-code
#codex
#ios
#developer-tools
#python
simple_barcode_scanner
★ 65
Open GitHub ↗
Simple Barcode Scanner
Download README (.md)
Explore Similar Repositories
ngx-scanner-qrcode
:
This library is built to provide a solution scanner QR code. This library takes in raw images and will locate, extract and parse any QR code found within.
Android-Library-Management
:
Android Library Management Project
react-qr-reader
:
React component for QR Scanning on web using Zxing library
QRcode-scanner-login
:
Android +PHP+Swoole+Websocket 客户端扫描网页端二维码实现登录
barcode-reader-emulator
:
Emulates a barcode-reader device that acts like a keyboard.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
simple_barcode_scanner
?
Download (.md)
<div style="background-color: #f0f8ff; color: #000; padding: 10px; border-radius: 5px; text-align: center;"> <strong>✊ We stand in solidarity with the Tibetan people in their struggle for freedom and cultural preservation. Learn more at <a href="https://www.freetibet.org" target="_blank">Free Tibet</a>.</strong> </div> # simple_barcode_scanner simple_barcode_scanner that let you scan barcode and qr code in mobile,web and windows. ## Demo Android | IOS :-------------------------:|:-------------------------: <img src="https://github.com/CodingWithTashi/simple_barcode_scanner/blob/main/example/demo/scanner_android.gif?raw=true" alt="drawing" width="350" height="650"/> | <img src="https://github.com/CodingWithTashi/simple_barcode_scanner/blob/main/example/demo/barcode_mobile.gif?raw=true" width="400" height="600" alt="drawing"/> Window | Web :-------------------------:|:-------------------------: <img src="https://github.com/CodingWithTashi/simple_barcode_scanner/blob/main/example/demo/window_scanner.gif?raw=true" alt="drawing" width="600" height="550"/> | <img src="https://github.com/CodingWithTashi/simple_barcode_scanner/blob/main/example/demo/barcode_web.gif?raw=true" width="550" height="600" alt="drawing"/> ## Credit * This plugin is built upon the [flutter_barcode_scanner](https://github.com/AmolGangadhare/flutter_barcode_scanner) for Android and iOS. Since the original plugin is no longer actively maintained, I have forked the repository and implemented additional features on top of it. Special thanks to Amol Gangadhare for his work. ## 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](https://pub.dev/packages/flutter_barcode_scanner) for installation and setup * Web uses html5-qrcode on [IFrameElement](https://api.flutter.dev/flutter/dart-html/IFrameElement-class.html). Setup is not required. For more you can read [html5-qrcode](https://github.com/mebjas/html5-qrcode) * Window uses html5-qrcode on [webview_windows](https://pub.dev/packages/webview_windows). ## Getting started ```dart simple_barcode_scanner: ^0.3.1 ``` Import the library: ```dart import 'package:simple_barcode_scanner/simple_barcode_scanner.dart'; ``` ## Usage 1. To scan barcode ```dart ElevatedButton( onPressed: () async { String? res = await SimpleBarcodeScanner.scanBarcode( context, barcodeAppBar: const BarcodeAppBar( appBarTitle: 'Test', centerTitle: false, enableBackButton: true, backButtonIcon: Icon(Icons.arrow_back_ios), ), isShowFlashIcon: true, delayMillis: 2000, cameraFace: CameraFace.front, ); setState(() { result = res as String; }); }, child: const Text('Open Scanner'), ) ``` 2. To stream barcode ```dart ElevatedButton( onPressed: () async { SimpleBarcodeScanner.streamBarcode( context, barcodeAppBar: const BarcodeAppBar( appBarTitle: 'Test', centerTitle: false, enableBackButton: true, backButtonIcon: Icon(Icons.arrow_back_ios), ), isShowFlashIcon: true, delayMillis: 2000, ).listen((event) { print("Stream Barcode Result: $event"); }); }, child: const Text('Open Scanner'), ) ``` 3. To Scan with widget(Android Only) ```dart SizedBox( width: 200, height: 200, child: SimpleBarcodeScanner( scaleHeight: 200, scaleWidth: 400, onScanned: (code) { setState(() { result = code; }); }, continuous: true, onBarcodeViewCreated: (BarcodeViewController controller) { this.controller = controller; }, )), ``` ## Todo * Flash and switch camera are only available in mobile devices * Enhancement ## Note Feel free to fork and send pull request. * iOS support may be delayed as I currently do not have access to an iOS device for testing. Contributions and testing help from the community are welcome! * If you have any questions, feedback or ideas,You can [create an issue](https://github.com/CodingWithTashi/simple_barcode_scanner/issues/new). If you enjoy this project, I'd appreciate your [🌟 on GitHub](https://github.com/CodingWithTashi/simple_barcode_scanner/). ## You can also buy me a cup of coffee <a href="https://www.buymeacoffee.com/codingwithtashi"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" width=200px></a> ## publish ``` dart pub publish --dry-run ``` ``` dart pub publish ```