Home > Enterprise >  Flutter - How to choose images programmatically (without user interaction)?
Flutter - How to choose images programmatically (without user interaction)?

Time:03-13

I want to programmatically choose images based on meta data like date and location. The whole procedure should take place locally on the mobile (iOS & Android). There shouldn't be any user interaction. image_picker is not the solution. Idea is to pick am image of a day by chance (eventually also based on location) to automatically add it to a diary.

Haven't found any package or answer. Hope I didn't miss anything. Can I perhaps call the Image app with a context? Can I write a package myself to complete this? Has anyone an idea how to do this?

Thanks!

CodePudding user response:

You can take a look at this package custom_image_picker, GitHub repo.

More details at How can I retrieve images from Gallery in flutter

CodePudding user response:

To display an image from your internal memory you can do so like this:

Image.file(yourImageFileLocation)

  • Related