title: Flutter: why image_picker doesn't open the photos from my gallery?
body: <p>I'm new in Flutter and can't get image_picker to open a picture from gallery.</p>
  
  <p>It opens Gallery, but when I tap on a picture, just close gallery</p>
  
  <p>My code is like this.. what i'm missing?</p>
  
  <pre><code>File _imagenTemporal;      
  
  
  var imagen; 
  
  Future getImagen(String opcion) async {
  
  if (opcion == "camara") {
  
      imagen = await ImagePicker.pickImage(source: ImageSource.camera);
  
  } else if (opcion == "galeria") {
  
      imagen = await ImagePicker.pickImage(source: ImageSource.gallery);
  
  }
  
  
      setState(() {
        _imagenTemporal = imagen;
      }
    );
  }
  </code></pre>