I've been making an app in flutter that displays user details
FlutterNfcReader.onTagDiscovered().listen((onData) {
Navigator.push(context,
MaterialPageRoute(builder: (context) => username()),// new page that i want to navigate
);
With this fork from flutter-nfc-reader
you can now read and write nfc tags from android and read them from ios https://github.com/semakers/flutter-nfc-reader
to install add the following dependency your pubspec.yaml
dependencies:
flutter_nfc_reader:
git:
url: git: //github.com/semakers/flutter-nfc-reader.git
ref: master
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.