I'm building a barcode reader application. Barcode will happen with barcode reading included in an android device. I'm trying this with RawKeyboardListener, but I don't know how to get the barcode result, can you help?
 RawKeyboardListener(
                      onKey: handleKey,
                      focusNode: FocusNode(),
                      autofocus: true,
                      child: Text('No textfield'),
                    ),
  handleKey(RawKeyEvent key) {
    
  }
 
                        
The onKey() function in the RawKeyboardListener() returns an event which has RawKeyDownEvent and RawKeyUpEvent. An event returns a single character in such format -
So if the barcode returns a Name, you can retrieve by using this code:
Hope this solves your problem!