flutter_pcsc 0.0.3 copy "flutter_pcsc: ^0.0.3" to clipboard
flutter_pcsc: ^0.0.3 copied to clipboard

outdated

Flutter plugin to access PCSC readers on Linux/Windows/MacOS

flutter_pcsc #

A Flutter plugin for using PCSC smartcard readers on Windows/macOS/Linux.

Usage #

Example #

  int ctx = await Pcsc.establishContext(PcscSCope.user);
  List<String> readers = await Pcsc.listReaders(ctx);

  if (readers.isEmpty) {
    print('Could not detect any reader');
  } else {
    String reader = readers[0]; // let's use the first available reader

    CardStruct card = await Pcsc.cardConnect(ctx, reader, PcscShare.shared, PcscProtocol.any);
    var response = await Pcsc.transmit(card, [0xFF, 0xCA, 0x00, 0x00, 0x00]);
    print('Response: $response');
        
    await Pcsc.cardDisconnect(card.hCard, PcscDisposition.resetCard);
  }
  await Pcsc.releaseContext(ctx);

8
likes
150
pub points
63%
popularity

Publisher

unverified uploader

Flutter plugin to access PCSC readers on Linux/Windows/MacOS

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi, flutter, flutter_pcsc_linux, flutter_pcsc_macos, flutter_pcsc_platform_interface, flutter_pcsc_windows

More

Packages that depend on flutter_pcsc