shaxxx / flutter_barcode_listener

Flutter widget to listen for scanned barcode via hardware scanners
MIT License
45 stars 46 forks source link

Listening unwanted screen #53

Closed SMBilalCS closed 2 months ago

SMBilalCS commented 2 months ago

i wrap first screen with barcode listener, but when i navigate to second screen barcode listener is also listening there.

shaxxx commented 2 months ago

Have you seen example project?

SMBilalCS commented 2 months ago

Have you seen example project?

yes, i made 3 screens. I use barcodelistener on 2nd screen. so in first screen it is not listening which is fine. in second its listening but in third screen its also listening but i dont wont it to listen.

shaxxx commented 2 months ago

Again, example has everything you need. Notice visible variable on first screen.