This website works better with JavaScript.
Home
Explore
Help
Sign In
flutter
/
zhiying_comm
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
95
Wiki
Activity
Browse Source
1.添加换起app通知的设置
tags/0.0.13
“yanghuaxuan”
3 years ago
parent
ab7cbeb6cf
commit
5be355f767
3 changed files
with
12 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
android/src/main/java/cn/zhios/zhiying_comm/ZhiyingFlutterCommNativable.java
+8
-0
android/src/main/java/cn/zhios/zhiying_comm/ZhiyingFlutterCommNative.java
+1
-1
pubspec.yaml
+ 3
- 0
android/src/main/java/cn/zhios/zhiying_comm/ZhiyingFlutterCommNativable.java
View File
@@ -18,4 +18,7 @@ public interface ZhiyingFlutterCommNativable {
public void invokeMethod(String method, Map<String, Object> params, ZhiyingFlutterCommHandler handler);
public void initSuccess();
public void openAppSettings();
}
+ 8
- 0
android/src/main/java/cn/zhios/zhiying_comm/ZhiyingFlutterCommNative.java
View File
@@ -97,7 +97,15 @@ public class ZhiyingFlutterCommNative implements MethodCallHandler {
}
result.success("success");
return;
}
if(call.method.equals("openAppSettings")){
if(nat!=null){
nat.openAppSettings();
}
Map map = new HashMap<String, Object>();
result.success(map);
return;
}
/* 调用原生方法 */
+ 1
- 1
pubspec.yaml
View File
@@ -79,7 +79,7 @@ dependencies:
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
#保存文件到相册
Write
Preview
Loading…
Cancel
Save