@@ -18,4 +18,7 @@ public interface ZhiyingFlutterCommNativable { | |||||
public void invokeMethod(String method, Map<String, Object> params, ZhiyingFlutterCommHandler handler); | public void invokeMethod(String method, Map<String, Object> params, ZhiyingFlutterCommHandler handler); | ||||
public void initSuccess(); | public void initSuccess(); | ||||
public void openAppSettings(); | |||||
} | } |
@@ -97,7 +97,15 @@ public class ZhiyingFlutterCommNative implements MethodCallHandler { | |||||
} | } | ||||
result.success("success"); | result.success("success"); | ||||
return; | return; | ||||
} | |||||
if(call.method.equals("openAppSettings")){ | |||||
if(nat!=null){ | |||||
nat.openAppSettings(); | |||||
} | |||||
Map map = new HashMap<String, Object>(); | |||||
result.success(map); | |||||
return; | |||||
} | } | ||||
/* 调用原生方法 */ | /* 调用原生方法 */ | ||||
@@ -79,7 +79,7 @@ dependencies: | |||||
permission_handler: | permission_handler: | ||||
git: | git: | ||||
url: 'http://192.168.0.138:3000/FnuoOS_Flutter_Components/permission_handler.git' | url: 'http://192.168.0.138:3000/FnuoOS_Flutter_Components/permission_handler.git' | ||||
ref: '0.0.1' | |||||
ref: '0.0.2' | |||||
#文件夹路径管理 | #文件夹路径管理 | ||||
path_provider: ^1.4.0 | path_provider: ^1.4.0 | ||||
#保存文件到相册 | #保存文件到相册 | ||||