DEV Community

Curtly Critchlow
Curtly Critchlow

Posted on • Updated on

#100DaysOfCodeChallenge - Crop Management Information System - Day 7

Recap

On Day 6 We received user input data via our Farmer form and save the form data in cloud firestore.

Overview

In this post we should of been implementing the camera functionality and layout. Unfortunately the method await _picker.getImage(source: ImageSource.camera); throws an error.

Exception has occurred.
PlatformException (PlatformException(no_available_camera, No cameras available for taking pictures., null, null))
Enter fullscreen mode Exit fullscreen mode


This error shows up only on the android emulator but not on a physical device. The android emulator camera works as expected when using the camera app.

Wrap Up

If you have as solution to this problem comment below. Until then I will continue to troubleshoot and hopefully find the solution sooner rather than later.

Connect with me

Thank you for reading my post. Feel free to subscribe below to join me on the #100DaysOfCodeChallenge or connect with me on LinkedIn and Twitter. You can also buy me a book to show your support.

Top comments (0)