Home > Software design >  Is there a way to detect available applications to pick image like gallery , amazon photos , google
Is there a way to detect available applications to pick image like gallery , amazon photos , google

Time:03-16

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. Native image picker

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!);
      });
    }
  }

enter image description here

  • Related