Retrieve image routes in Flutter Retrieve image routes in Flutter dart dart

Retrieve image routes in Flutter


ImagePicker returns a File and you get the path using the Files 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);