sm_scan 0.0.1
sm_scan: ^0.0.1 copied to clipboard
A new flutter plugin project.
商米L2 手机接收广播数据flutter插件
如何使用 #
引入插件后,在需要获取获取扫描头数据的页面,创建:
static const EventChannel _eventChannel = EventChannel('shangmi_flutter');
在initState 初始化
_eventChannel.receiveBroadcastStream().listen((value) {
print("获取到扫描头数据>>>>>>>>>>$value");
});
最后附上官方开发指南扫码头开发及用户文档.pdf