Take photo without interruption in flutter

Take photo without interruption in flutter

  

Taking image from camera using image_picker plugin requires one extra step (i.e. Use Photo or Retake). This is affecting user experience a lot when they have to take multiple photos. Is there any alternative to this plugin that allows users to take photo from camera without having to go through Use Photo step?

Answer

Try this : As per the documentation :

        final ImagePicker picker = ImagePicker();
        final XFile? photo = await picker.pickImage(source: ImageSource.camera); 
        // ImageSource.gallery for gallery
© 2024 Dagalaxy. All rights reserved.