How to save images from the camera into gallery when captured in flutter

40 Views Asked by At

How can I save images when I capture it ? I am using ImagePicker and just know how to preview it, but not how to save it. Is there any way that we can take multiple images at one time and then click OK, It would come back to the screen, show and automatic save them to gallery?

Future _takeImageFromCamera() async {
    final returnedImage =
        await ImagePicker().pickImage(source: ImageSource.camera);
    if (returnedImage == null) return;
    setState(() {
      _selectedImage = File(returnedImage!.path);
    });
  }

I already search on youtube and stackOverFlow but they save images from the url not what i want to

0

There are 0 best solutions below