Sfoglia il codice sorgente

1.添加换起app通知的设置

tags/0.0.13
“yanghuaxuan” 3 anni fa
parent
commit
5be355f767
3 ha cambiato i file con 12 aggiunte e 1 eliminazioni
  1. +3
    -0
      android/src/main/java/cn/zhios/zhiying_comm/ZhiyingFlutterCommNativable.java
  2. +8
    -0
      android/src/main/java/cn/zhios/zhiying_comm/ZhiyingFlutterCommNative.java
  3. +1
    -1
      pubspec.yaml

+ 3
- 0
android/src/main/java/cn/zhios/zhiying_comm/ZhiyingFlutterCommNativable.java Vedi 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 Vedi 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 Vedi 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
#保存文件到相册


Caricamento…
Annulla
Salva