I want to get gallery folder path.
I tried to use multiple libraries [path_provider, storage_path, image_save, multi_image_picker ...]
to get the gallery folder path, but none of the libraries got the gallery folder path.
I want to get gallery folder path.
I tried to use multiple libraries [path_provider, storage_path, image_save, multi_image_picker ...]
to get the gallery folder path, but none of the libraries got the gallery folder path.
See, I don't find any great thing to save your file to your gallery, what I did found is to how to get your things done.
My solution will give you some things like
Saving the file:
Check whether the file exists or not
To do this, you can use this code inside your code, where you are trying to save the file, form the above answer.
Important: You will get the path
of the file where you are storing the file, just pass the path in the below code
import 'dart:io' as io;
// for a file
bool exists = io.File(path).exists();
// for a directory
bool exists = io.Directory(path).exists();
if(exists) // do your operation
else // do your else operation
I am able to produce this much content for your problem. Any feedback are welcomed.