diff --git a/lib/src/mobile_scanner_controller.dart b/lib/src/mobile_scanner_controller.dart index 7c81fa040868c1e2e27d85b1a23e7773f728d2a9..69d21f17afe1e2f01754fcf39176de40960f011d 100644 --- a/lib/src/mobile_scanner_controller.dart +++ b/lib/src/mobile_scanner_controller.dart @@ -164,7 +164,7 @@ class MobileScannerController { } */ if (formats != null) { - if (kIsWeb || Platform.isIOS || Platform.isMacOS || Platform.isAndroid) { + if (kIsWeb || Platform.isIOS || Platform.isMacOS || Platform.isAndroid || defaultTargetPlatform == TargetPlatform.ohos) { arguments['formats'] = formats!.map((e) => e.rawValue).toList(); } }