skip to Main Content

(Flutter) get image From image picker save and load issue

File? imageFile; ImagePicker imagePicker = ImagePicker(); Future<File?> getImage(ImageSource imageSource) async { final XFile? pickedFile = await imagePicker.pickImage(source: imageSource); if (pickedFile == null) { return null; } return File(pickedFile.path); } // source is camera // save to SharedPreferences final String duplicateFilePath…

VIEW QUESTION
Back To Top
Search