title: How to manage upload/deletion of multiple images in flutter and keeping it in sync between firestore, cloud-storage and UI
body: <p>We can select multiple images using the flutter plugin : <a href="https://pub.dev/packages/multi_image_picker" rel="nofollow noreferrer">https://pub.dev/packages/multi_image_picker</a>
  We can then use firebase - cloud storage to upload these pics and save the url in firestore db for easy access and display. I have done this part successfully. I also know how to delete a single image but have following Question:</p>
  <p>If I have selected 5 images, how do we allow the user to delete these images. Following scenarios are troubling me</p>
  <ol>
  <li>delete only 3 images out of 5</li>
  <li>delete all the 5 images and save</li>
  <li>delete all the 3 images and select new 3 images and save</li>
  <li>there are two text fields in that screen which can also be edited. Ideally we should not touch the images to save these changes. But How do we know this?</li>
  </ol>
  <p>I do not want to delete all the images and save it again every time the user makes a change in that screen</p>
  <p>how would u go about doing this?</p>