WiFi Barcode Scanner
A Flutter package for wireless barcode scanning between devices over WiFi. Turn any phone into a barcode scanner for your POS, inventory, or warehouse application.
β¨ Features
- π± Turn any phone into a wireless barcode scanner
- π Works over WiFi or mobile hotspot
- π No cables or Bluetooth required
- β‘ Real-time barcode transmission
- π Built-in connection diagnostics
- β Scan confirmation dialogs
- π οΈ Easy integration
π¦ Installation
Add to your pubspec.yaml:
dependencies:
wifi_barcode_scanner: ^1.0.0
Then run:
flutter pub get
π Quick Start
Receiver Device (Tablet/POS)
import 'package:wifi_barcode_scanner/wifi_barcode_scanner.dart';
final server = BarcodeHttpServer(
onBarcodeReceived: (barcode) {
print('Received: $barcode');
// Process barcode in your app
},
);
String? ip = await server.start();
print('Server IP: $ip:8080');
Scanner Device (Phone)
import 'package:wifi_barcode_scanner/wifi_barcode_scanner.dart';
Scaffold(
body: ScannerWidget(
config: ScannerConfig(
defaultIpAddress: '192.168.43.1', // or your receiver's IP
),
),
)
Libraries
- wifi_barcode_scanner
- WiFi Barcode Scanner