title: Flutter Image_Picker doesn't pick image from gallery and return to app
body: <p><a href="https://i.stack.imgur.com/tuhOS.gif" rel="nofollow noreferrer">Here is a what's happening : </a>I'm trying to upload an image from gallery to my app on iOS simulator. Image Picker opens the gallery but can't select an image and return to app. Here's my simple code:</p>
  <pre><code>  File _image;
    final picker = ImagePicker();
  
    Future getImage() async {
      final pickedFile = await picker.getImage(source: ImageSource.gallery);
  
      setState(() {
        if (pickedFile != null) {
          _image = File(pickedFile.path);
        } else {
          print('No image selected.');
        }
      });
    }
  </code></pre>
  <p>and my widget:</p>
  <pre><code>body: Center(
          child: _image != null ? Image.file(_image) : Text('no Image'),
  ),
  </code></pre>
  <p>Thank you all in advance</p>