Aug 30 2022 · Dart 2.16, Flutter 3.0, Visual Studio Code 1.69
Part 4: Save Pictures to Cloud Storage
18. Add Pictures in the Screen
Heads up... You've reached locked video content where the transcript will be shown astext.
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;