wu9007 / pda_scanner

🚀A Flutter plugin to scanning. Ready for PDA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

在世麦C5000L上不管用,onEvent与onError无法被触发

Chen-Yong-Jie opened this issue · comments

commented

class _MainPageState extends State with PdaListenerMixin {
var _code;
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Container(
child: TextField(
focusNode: new FocusNode(),
onEditingComplete: () {
print("回车");
},
onSubmitted: (value) {
print("值:" + value);
},
),
),
);
}

@OverRide
void onEvent(Object event) {
print(event);
}

@OverRide
void onError(Object error) {
print(error);
}
}

@Chen-Yong-Jie 查看一下这两个参数是什么
image