How can I get multiple file object as we did for a single file by getFile Method?
You don鈥檛, but the getFile is just a helper method that wraps the picked path into a File(path). Nothing else. So you can iterate for all the path values that you get from the getMultiPath and populate a List<File> yourself.
@miguelpruivo I need to copy multiple files into getApplicationDocumentsDirectory as I did for the single file using getFile Method like this await file.copy('$savedDir/$fileName'); but now not able to copy multiple files just because I am getting paths instead of files...
You need to create a File() with the path for each path, as such: File(path)
Hi, just to let you know that in the next release there will be a getMultiFile method that will do that work for you, based on your suggestion.
Thank you.
@miguelpruivo haha, thanks a lot ! 馃槉
@Zeeshan0201 done, can you check the beta branch on your project and see if its working for your needs? Replace in the pubspec.yaml like so:
file_picker:
git:
url: https://github.com/miguelpruivo/plugins_flutter_file_picker.git
ref: beta
@miguelpruivo great ! Will try and respond 馃憤
@miguelpruivo it's working awesome :+1: ready for release new version :rocket:
@miguelpruivo can you please check this,can you make packages regarding this?
https://stackoverflow.com/questions/58037603/how-can-i-force-stop-any-application-using-flutter
@Zeeshan0201 I鈥檓 afraid that that is controlled by the system itself and you _shouldn鈥檛_ be able to do this. The app should be properly closed with a sigterm command, in the best scenario.
@miguelpruivo I just want to turn off the internet of the particular application without turning of device internet connection, so thought by force stop that application we can do it...and I want to make an application on it...
@miguelpruivo can you please reply if possible?
@Zeeshan0201 which application are you relating to? It's an app that you are the owner?
@miguelpruivo _please check this, I haven't currently this type of app, I just want to make this type of mobile application using flutter..._
Most helpful comment
@Zeeshan0201 done, can you check the
betabranch on your project and see if its working for your needs? Replace in the pubspec.yaml like so: