FrenkyDema / qrcode_barcode_scanner

Listen barcode input from keyboard device interface
https://pub.dev/packages/qrcode_barcode_scanner
MIT License
6 stars 2 forks source link

Fix focus loss when text field is present #46

Closed FrenkyDema closed 5 months ago

FrenkyDema commented 5 months ago

Description: This pull request addresses focus loss issues caused by the barcode scanner intercepting keyboard events when a text field has focus. Changes include optimizations, error handling improvements, and enhanced code readability.

Changes:

Added documentation comments. Optimized logic in _keyBoardCallback. Improved error handling to prevent null pointer exceptions. Refactored method names and comments for clarity.