I want to create an image picker like android native that detect all available applications to pick image using flutter image picker. To be more specific I want to display the available image applications.
CodePudding user response:
Hey Don't know about image_picker
, but file_picker
works for me as below
Future getFromGallery() async {
FilePickerResult? result =
await FilePicker.platform.pickFiles(type: FileType.image);
if (result != null) {
setState(() {
pickedImage = File(result.files.single.path!);
});
}
}