googlecodelabs / photos-sharing

Code for the "Build a Photo Sharing app with Google Photos and Flutter" codelab
Apache License 2.0
98 stars 71 forks source link

Uploading photo issue #19

Closed SusannaJung closed 4 years ago

SusannaJung commented 4 years ago

When I click Add Photo and then Upload photo It does not show image selector but shows an error that camera is not available. image

jfschmakeit commented 4 years ago

Are you running the application in the iOS simulator? It is not possible to access the camera in the simulator - you will need to run the application on a physical iOS device. We have added a note at the beginning of the codelab to call this out.

(Also see https://help.apple.com/simulator/mac/current/#/devb0244142d under "Hardware differences".)

If you do wish to run this codelab in the iOS simulator, you need to change the call in the filecontribute_photo_dialog.dart to the image_picker package to use the device gallery (ImageSource.gallery) instead.