|
|
@ -48,9 +48,9 @@ class _ScanPageState extends State<ScanPage> {
|
|
|
|
onQRViewCreated: (controller) {
|
|
|
|
onQRViewCreated: (controller) {
|
|
|
|
_qrViewController = controller;
|
|
|
|
_qrViewController = controller;
|
|
|
|
controller.scannedDataStream.listen((event) {
|
|
|
|
controller.scannedDataStream.listen((event) {
|
|
|
|
if (tempText != event) {
|
|
|
|
if (tempText != event.code) {
|
|
|
|
tempText = event;
|
|
|
|
tempText = event.code;
|
|
|
|
BotToast.showText(text: event);
|
|
|
|
BotToast.showText(text: event.code);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|