简体   繁体   English

Flutter:如何查看本地文件列表并将文件提取到应用程序中?

[英]Flutter: How to check local file list and extract files into app?

As we know, our mobile phone has a function that we can check files from a file list.我们知道,我们的手机有一个 function,我们可以从文件列表中查看文件。 Just like the following picture.就像下图一样。 It seems that this function's name is filemanager .这个函数的名称似乎是filemanager I wondered that is it possible in Flutter to achieve a similar function, which can check my own mobile phone's files and extract one of the files into my app?请问Flutter是否可以实现类似function,可以查看自己手机的文件,并提取其中一个文件到我的app中? What packages or ways do I need?我需要什么套餐或方式?

Thanks for your help.谢谢你的帮助。 This question may be quite puerile, but it is my first Flutter app.这个问题可能比较幼稚,但这是我的第一个Flutter app。 enter image description here在此处输入图像描述

Yes.是的。 It's very much possible to create a file manager with flutter.用 flutter 创建一个文件管理器是很有可能的。

Here's a repo to a flutter file manager Github这是 flutter 文件管理器Github的回购协议

Basically the most important package is included in dart( dart:io ), any other package will vary on your use case.基本上最重要的 package 包含在 dart( dart:io ) 中,任何其他 package 将根据您的用例而有所不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM