Add Pictures in the Screen Pro
In this lesson you will see how to use the local file storage to access your device pictures. From there you’ll select a picture that you’ll later send to the Cloud Storage.
As you want to store an image to the cloud storage, in the FirebaseHelper class let’s create a method that uploads a file into the Firebase Cloud Storage bucket.
final folder = 'activity_images/';
final path = folder + basename(file.path);
await storage.ref(path).putFile(file); return true;