Image for post
Image for post
source: https://miro.medium.com/max/1050/1*XPNzFkyGgs9zBLI-irsMUQ.jpeg

In this tutorial, we are going to look at how we can add an image file to Firebase Storage and Cloud Firestore. First we add image from the assets folder to Firebase Storage. Then add the path of those images in Cloud Firestore.

Prerequisites:

  • A Firebase integrated Flutter project . If not follow this link to add Firebase to your app: adding Firebase

Adding Dependencies

For working with Firebase storage and cloud Firestore first we need to add following dependencies in pubspec.yaml(You can find it below the main. dart) file.

dependencies:
cloud_firestore: ^0.14.1+3
firebase_storage: ^5.0.0

After adding dependencies save (ctrl + s)and…


Image for post
Image for post

In this article, we are given some insights when choosing a career path in IT in order to make their life better.

I have contributed to the below article along with Charangan Vasantharajan, and Thivvyan Karuneswaran which was published through Youth Govern SL.

Link

https://youthgovernsl.medium.com/things-to-consider-when-choosing-a-career-path-in-it-50e635e9f935

Sanjeepan Sivapiran

UG at University of Moratuwa,CSE Flutter developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store