2

Am trying to user image_picker plugin in my flutter desktop project, but i think there is no implementation for this plugin that work with windows desktop app. Did someone have a solution for that ? Ps : i want use go-flutter and hover.

2 Answers 2

2

There are two options:

Sign up to request clarification or add additional context in comments.

Comments

0
File image;
  final picker = ImagePicker();
  Future getImage(ImageSource src) async {
    final pickedFile = await picker.getImage(source: src);
    setState(() {
      if (pickedFile != null) {
        image = File(pickedFile.path);
      } else {
        print("no image selected");
      }
    });
  }

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.