diff --git a/packages/pdfx/lib/src/renderer/has_pdf_support.dart b/packages/pdfx/lib/src/renderer/has_pdf_support.dart index 6d43d23077d25c8089042957d2217421260d744d..5a62beda15007db6c5216a78ca25370aa59e4ecc 100644 --- a/packages/pdfx/lib/src/renderer/has_pdf_support.dart +++ b/packages/pdfx/lib/src/renderer/has_pdf_support.dart @@ -1,5 +1,6 @@ import 'dart:async'; +import 'package:flutter/foundation.dart'; import 'package:device_info_plus/device_info_plus.dart'; import 'package:universal_platform/universal_platform.dart'; @@ -7,7 +8,8 @@ Future hasPdfSupport() async { if (UniversalPlatform.isMacOS || UniversalPlatform.isIOS || UniversalPlatform.isWindows || - UniversalPlatform.isWeb) { + UniversalPlatform.isWeb || + defaultTargetPlatform == TargetPlatform.ohos) { return true; } if (UniversalPlatform.isAndroid) {