title: Is there way to fix the camera Functionality onto iOS using flutter?
body: <p>The problem is accessing the camera on iPhone does not work. Trying access the camera on Android does work. Im building app using flutter which Im trying to make the app functional for both device. Every time I press on camera button. The app exit by itself. Im trying to send this picture to the firebase database. Doing this way won't let me access camera functionality for iOS.</p>
  
  <p>I have tried to eliminate photo library functionality but that did not work. Camera before was working. The camera dependency is in Pubspec.yaml </p>
  
  <pre><code>Future getImage() async {
      var tempimage = await ImagePicker.pickImage(source: ImageSource.camera);
      setState(() {
        sampleimage = tempimage;
  
      });
    }
      Future getLibraryImage() async {
      var libraryimage = await ImagePicker.pickImage(source: ImageSource.gallery);
      setState(() {
        sampleimage = libraryimage;
  
      });
      }
  
  shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(9.0)),
                    onPressed: () { getImage(); },
                    child: Row(
                      children: [
                        Text(" Camera "),
                        Image.asset("images/camera.png", height: 15.0,),
                    ],
                    ),
                  ),
                    ),
                  ),
  </code></pre>