in example/lib/pages/qrcode/qrcode_page.dart [72:85]
void _handleBarcodeDetection(BarcodeCapture barcode) {
if (_isProcessing) return; // 防止重复处理
final String? result = barcode.barcodes.firstOrNull?.rawValue;
if (result != null && result.isNotEmpty) {
_isProcessing = true;
// 停止扫描
_scannerController.stop();
// 返回扫码结果
Navigator.pop(context, result);
}
}