flutter_nfc_kit icon indicating copy to clipboard operation
flutter_nfc_kit copied to clipboard

Support EventChannel(s)

Open larssn opened this issue 3 years ago • 1 comments

Recommend supporting Streams through EventChannel, as it makes some operations easier (like having a listener running in the background).

Then it would be possible to having a simple API like:

var streamSub = FlutterNfcKit.tags.listen((tag) {
   print(tag);
});

Just a suggestion. Sadly I have no time to do a PR.

larssn avatar Oct 02 '20 09:10 larssn

This is possible, but will become a total different set of APIs. Maybe the foreground dispatch mode mentioned in #17 can work together with this Stream-like API.

Harry-Chen avatar Nov 14 '20 15:11 Harry-Chen