WalletQrScannerBuilder typedef

WalletQrScannerBuilder = Widget Function(BuildContext context, ValueChanged<String> onScan, ValueChanged<Object> onError)

Builds only the camera preview/decoder used by the wallet input dialogs.

Report decoded text through onScan and camera failures through onError. The widget must release camera resources when disposed. NDK removes it while another input dialog or connection status is displayed and recreates it when scanning resumes. No camera package is required by ndk_flutter.

Implementation

typedef WalletQrScannerBuilder =
    Widget Function(
      BuildContext context,
      ValueChanged<String> onScan,
      ValueChanged<Object> onError,
    );