I want to save the image permanent directory. The problem I'm having its one i take a picture using the image picker widget and move he image from the temp file to a permanent one it works. but if I rebuild the app the image can't be found.
This is the piece of code that save the image to a "permananent directory"
final directory = await getApplicationDocumentsDirectory();
final name = p.basename(imagePath);
final image = File('${directory.path}/$name');
return File(imagePath).copy(image.path);
}```
I have being going on this all day. i will apreaciate the help