Take mulitple pictures using image_picker in flutter - flutter

I've got an app up and running in flutter using ImagePicker. At the moment, after the picture is taken and the check mark (for OK) selected, the ImagePicker closes and the app shows my screen to allow taking either another picture or selecting an image from the gallery.
What I would like to do is take a picture, and then after the 'ok', show the camera again, until the user x's out of the camera.
Do I override an event to change this behaviour, and if I do, which event?

Related

Is this possible using Flutter streams

I have a Flutter screen is suppose to implement a photo-gallery which has a main big image and a grid view of many small images. When the screen is first displayed it displays the first image in the grid normally and shows it in the big picture and has the other small images at a darker color filter to show they are not the one currently selected. When the user taps on a different one the main photo is changed to a large version of the small image and which ever small image that was previously selected goes dark and the selected image is displayed normally.
This list of images also contain YouTube videos which are indicated by showing a translucent play icon in the middle of them. When the user taps on one of these it plays the video.
To implement this I made a base class called media and inherited the image and YouTube classes from media. I would like to have both classes have the same behavior in terms of highlighting and perform differently in terms of how they display and what happens when you tap on one. So far I can send a message from the images to the main screen to tell the main image to change but I am not sure how to get main screen to send a message to the previously highlighted small image and the to the be highlighted small image in order to change their highlighting.
I tried global keys but I could not get that to work. So, I was thinking of using a stream but I am new to Flutter and Dart so not sure how to get that to work. What can I try next?

Is there any way to capture screenshot of home screen in Flutter, not the app screen

I'm using a screen recording plugin here. I want to add a functionality to capture screenshot of the device's home screen or whatever the user is doing, and I've used different packages, but none of them worked as I wanted.

Flutter image_picker pickImage camera buttons

In my app, I use carImage = await ImagePicker.pickImage(source: ImageSource.camera) to take a picture. This works fine. After taking the picture, two buttons are displayed, Save and Cancel (or something like that, the labels are in Swedish.) After pressing Save, I am returned to my app code.
I would prefer not to have these buttons. I want to return to my code immediately after taking the picture, without having to press a button.
Is this possible? How?
(I cannot use the camera plugin due to its strange behaviour om Samsung Galaxy, a known problem.)

How do you clear image cache in iPhone 5S Safari browser?

Please forgive me if this question sounds like clearing Safari cache/cookies in General->Settings.
The issue is as follows:
We have a custom webpage where user can upload his profile icon/image by choosing from Phone's photo library or taking a photo.
The 1st time user uploads an image P1, it's uploaded successfully to server.
If user refreshes the webpage and tries to upload a different image P2, P1 is uploaded to server.
Problem persists even after clearing browser cache.
If I kill browser and clear cache, then I'll be able to upload a new image.
This problem does not occur on browsers on Google devices or on PC.
Somehow iPhone browser remembers the image object and I need to find a way to clear it.
Launch the Settings app from the Home screen of your iPhone or iPad.
Scroll down and tap on Safari.
Now scroll all the way to the bottom and tap on Advanced.
Tap on Website Data. Notice here you can see how much space on your iPhone or iPad website data is taking up.
Scroll to the bottom again and tap on Remove All Website Data.
Confirm one more time you'd like to delete all data.
Launch the Settings app from the Home screen of your iPhone or iPad.
Scroll down and tap on Safari.
Now scroll all the way to the bottom and tap on Advanced.
Tap on Website Data. Notice here you can see how much space on your iPhone or iPad website data is taking up.
Scroll to the bottom again and tap on Remove All Website Data.
Confirm one more time you'd like to delete all data.

How to embed a small camera preview, and then save the whole screenshot image in iphone

I want to put a background image first, and then put a small camera preview view on the top of it.
When user clicked the ok button, a screenshot of the whole merged picture could be reproduced. I remember that some apps in appstore did this, just want to know how to achieve this in code.
Place your background image.. Over that place your imagepicker controller..
take screenshot using UIGetScreenImage