From 43ec28ee5f89920e61b203035a4d4cc2bacb3e9c Mon Sep 17 00:00:00 2001 From: wwyang <137208408@qq.com> Date: Mon, 30 Sep 2024 11:52:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B9=B3=E5=8F=B0=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wwyang <137208408@qq.com> --- packages/pdfx/lib/src/renderer/has_pdf_support.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/pdfx/lib/src/renderer/has_pdf_support.dart b/packages/pdfx/lib/src/renderer/has_pdf_support.dart index 6d43d23..5a62bed 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) { -- Gitee