How okadan/flutter-nfc-manager works
Project type and purpose
• This is an open-source Dart/Flutter plugin monorepo (a workspace) for NFC features.
• It contains multiple packages:
• ndef_record – NDEF record handling in pure Dart
• nfc_manager – Core Flutter plugin exposing NFC on Android/iOS
• nfc_manager_ndef – Higher-level NDEF abstraction built on nfc_manager
• nfc_manager_felica – FeliCa card abstraction built on nfc_manager
• Each package ships with: Dart library code, platform-specific plugin code (Android/Kotlin, iOS/Swift), Pigeon definitions, and example apps.
File structure
• Top-level: mono repo root with pubspec.yaml, README, and a packages/ directory.
• Under packages/: one folder per plugin.
– lib/ : the Dart API surface
– pigeon/ : shared API definitions (in nfc_manager only)
– android/ : native code (Kotlin + Gradle scripts)
– ios/ : native code (Swift + Podspec)
– example/ : a standalone Flutter app demonstrating usage
• Dependencies flow:
ndef_record (standalone)
nfc_manager (core) ← pigeon → native code
nfc_manager_ndef → nfc_manager
nfc_manager_felica → nfc_manager
• Build & deployment files: Gradle, Podfile, analysis_options.yaml
README for additional insights
• The README lists each package and its role.
• Confirms that nfc_manager is the pivot, and the other packages extend/consume it.
Elements
• Clear labels: “Dart API”, “Pigeon Stubs”, “Android Plugin”, “iOS Plugin”, “Example App”
– from Example → Dart API → Pigeon Stubs → Native Plugin → OS NFC APIs
– from Extension Package → Core Plugin