shaxxx / flutter_barcode_listener

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

Works fine but how if it use only listener not widget #45

Closed ccprogrammer closed 11 months ago

ccprogrammer commented 1 year ago

everythings works fine but i want to use only listener without putting widget and how do you listen if usb is connected?

shaxxx commented 11 months ago

You can useSizedBox.shrink() as a child if you don't need to display anthing. USB or no USB, doesn't matter. If it triggers keypress event this library will handle it correctly.