pda_rfid_scanner 0.0.2+1 copy "pda_rfid_scanner: ^0.0.2+1" to clipboard
pda_rfid_scanner: ^0.0.2+1 copied to clipboard

PlatformAndroid

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();
}
16
likes
160
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin project for RFID scan on Blovedream PDA devices. Uses Android sdk serialport. To communicate used MethodChannel and EventChannel.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on pda_rfid_scanner