Home > Blockchain >  Store files from flutter application to external storage
Store files from flutter application to external storage

Time:10-25

Is it always safe to use the path "/storage/emulated/0/{MY APP NAME}" to store the files ?

I Want to store files in the external storage of the android device and I want to store it in a folder named after the app name this folder needs to be located in the external storage.

CodePudding user response:

Have you tried the package path_provider https://pub.dev/packages/path_provider/install?

It comes with the methods getExternalStorageDirectory() and getApplicationDocumentsDirectory() which might be what you are looking for. As far as I know different os types are automatically considered as well.

CodePudding user response:

try the same package of ext_storage named android_external_storage its the same concept putting the downloaded data for example to the download folder.

  • Related