From f9ee987c5a10d576169e3275f4490f39671ae408 Mon Sep 17 00:00:00 2001 From: stewen Date: Sat, 12 Aug 2023 15:44:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=A0=E8=BD=BD=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mop.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/mop.dart b/lib/mop.dart index dd7c723..8b1a702 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -1235,6 +1235,14 @@ class Mop { _webExtensionApis[name] = handler; _channel.invokeMethod("addWebExtentionApi", {"name": name}); } + ///显示加载中 + Future showLoading() async { + return await _channel.invokeMethod("showLoading"); + } + ///隐藏加载中 + Future hideLoading() async { + return await _channel.invokeMethod("hideLoading"); + } /// 原生调用webview中的js方法 /// [appId] 小程序id