pda_rfid_scanner 0.0.2+1 pda_rfid_scanner: ^0.0.2+1 copied to clipboard
A Flutter plugin project for RFID scan on Blovedream PDA devices. Uses Android sdk serialport. To communicate used MethodChannel and EventChannel.
pda_rfid_scanner #
A Flutter plugin project for RFID scan on Blovedream PDA.
Getting Started #
- Power on Plugin
PdaRfidScanner.powerOn();
- Power off Plugin
PdaRfidScanner.powerOff();
- Using stream to handle scanned information
StreamSubscription? _streamSubscription;
String rfid = '';
@override
void initState() {
_streamSubscription =
PdaRfidScanner.channel.receiveBroadcastStream().listen(
(dynamic event) {
debugPrint('Received event: $event');
setState(() {
rfid = event;
});
},
onError: (dynamic error) {
debugPrint('Received error: ${error.message}');
},
cancelOnError: true,
);
super.initState();
}