Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 颤振-浏览网络驱动器_Flutter_Dart_Network Programming_Nas - Fatal编程技术网

Flutter 颤振-浏览网络驱动器

Flutter 颤振-浏览网络驱动器,flutter,dart,network-programming,nas,Flutter,Dart,Network Programming,Nas,我是一个新手,我正在尝试创建一个应用程序,允许我浏览存储在NAS上的文件和文件夹 几次谷歌搜索并没有让我找到任何地方。我尝试了libdsm,但它似乎过时了,而且没有任何效果: Dsm dsm = Dsm(); void _start() async { dsm.init(); dsm.onDiscoveryChanged.listen(_discoveryListener); dsm.startDiscovery(); } void _discoveryListener(Stri

我是一个新手,我正在尝试创建一个应用程序,允许我浏览存储在NAS上的文件和文件夹

几次谷歌搜索并没有让我找到任何地方。我尝试了
libdsm
,但它似乎过时了,而且没有任何效果:

Dsm dsm = Dsm();

void _start() async {
  dsm.init();
  dsm.onDiscoveryChanged.listen(_discoveryListener);
  dsm.startDiscovery();
}

void _discoveryListener(String json) async {
  setState(() {
    _devices = json;
  });
}
I/DsmPlugin(28686):onMethodCall()用:call.method调用= [DSM_init],call.args=[null]D/[DSM]本机:[DSM_init] 初始化的dsm=-5476376651314242064 I/DsmPlugin(28686):onListen() 调用时使用:参数=[null],事件= [io.flatter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation@734165b] E/flatter(28686):[错误:flatter/lib/ui/ui\u dart\u state.cc(199)] 未处理的异常:PlatformException(参数错误,非法参数, 空,空)

关于如何做到这一点,有什么建议吗?我试图寻找smb、bonjour、nfs,但到目前为止运气都不好