You don't need to use webview.
Try the example code located under https://github.com/yushulx/flutter_camera_windows. It supports barcode scanning with flutter_barcode_sdk. I modified the official camera windows plugin to provide stream images.
Additionally, I published a lightweight camera plugin for Windows, Linux and macOS: flutter_lite_camera. The plugin also contains a barcode detection example.