title: Black Screen after taking photo in image_picker plugin
body: <p>I am using latest version of <code>image_picker</code>plugin, including Flutter 2.0.3 version and also this is failing on a real device(Xiaomi Redmi Note 7).The only message I can see is Lost connection to device when I take the camera. Gallery works fine.This is my code.</p>
  <pre><code>import 'dart:io';
  
  import 'package:flutter/material.dart';
  import 'package:image_picker/image_picker.dart';
  
  void main() =&gt; runApp(MyApp());
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        home: MyHomePage(),
      );
    }
  }
  
  class MyHomePage extends StatefulWidget {
    @override
    _MyHomePageState createState() =&gt; _MyHomePageState();
  }
  
  class _MyHomePageState extends State&lt;MyHomePage&gt; {
    File _image;
    final picker = ImagePicker();
  
    Future getImage() async {
      final pickedFile = await picker.getImage(source: ImageSource.camera);
  
      setState(() {
        if (pickedFile != null) {
          _image = File(pickedFile.path);
        } else {
          print('No image selected.');
        }
      });
    }
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Text('Image Picker Example'),
        ),
        body: Center(
          child: _image == null
              ? Text('No image selected.')
              : Image.file(_image),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: getImage,
          tooltip: 'Pick Image',
          child: Icon(Icons.add_a_photo),
        ),
      );
    }
  }
  </code></pre>
  <p>I already added all permissions.How can solve this problem?</p>