nfc_util 0.1.1 copy "nfc_util: ^0.1.1" to clipboard
nfc_util: ^0.1.1 copied to clipboard

A Flutter plugin providing access to NFC features on Android and iOS.

nfc_util #

A Flutter plugin providing access to NFC features on Android and iOS.

Setup #

Android #

iOS #

Usage #

Handling Session

// Check availability
bool isAvailable = await NfcManager.instance.isAvailable();

// Start Session
NfcManager.instance.startSession(
  onDiscovered: (NfcTag tag) async {
    // Do something with an NfcTag instance.
  },
);

// Stop Session
NfcManager.instance.stopSession();

Handling Platform Tag

The following platform-tag-classes are available:

  • Ndef
  • FeliCa (iOS only)
  • Iso7816 (iOS only)
  • Iso15693 (iOS only)
  • MiFare (iOS only)
  • NfcA (Android only)
  • NfcB (Android only)
  • NfcF (Android only)
  • NfcV (Android only)
  • IsoDep (Android only)
  • MifareClassic (Android only)
  • MifareUtralight (Android only)
  • NdefFormatable (Android only)

Obtain an instance by calling the factory constructor from on the class. For example:

Ndef? ndef = Ndef.from(tag);

if (ndef == null) {
  print('Tag is not compatible with NDEF');
  return;
}

// Do something with an Ndef instance

✨ Overview #

This plugin was created to:

  • Provide an actively maintained alternative NFC plugin
  • Support newer Flutter, Android, and iOS versions
  • Allow independent updates without relying on the original package
  • Keep the API familiar for developers already using nfc_manager

Android and iOS implementations are included as separate, fully integrated platform modules within this plugin.


✨ What’s New Compared to nfc_manager v3.5.0 #

  • Updated Android and iOS platform implementations
  • Improved NFC session handling and lifecycle management
  • Better compatibility with recent Flutter and SDK versions
  • Codebase cleanup and structural improvements

See CHANGELOG.md for detailed changes.


1
likes
150
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin providing access to NFC features on Android and iOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on nfc_util

Packages that implement nfc_util