Retrieve image routes in Flutter
ImagePicker
returns a File
and you get the path using the File
s path
getter.
final file = await ImagePicker.pickImage(source: ImageSource.gallery);print(file.path);
You can then later create a new File
instance with the retrieved path
final file = File(path);
and display it using for example
Image.file(file);