DEV Community

Curtly Critchlow
Curtly Critchlow

Posted on • Edited on

1

#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.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay