Add Firebase Storage
Profile picture is currently hard coded , lets store it in firebase storage
add package firebase_storage to pubspec.yaml
firebase_storage: ^11.6.6Screens => profile_screen.dart
final _firestore = FirebaseFirestore.instance;
final _auth = FirebaseAuth.instance;
final _storage = FirebaseStorage.instance;
var name = "Loading...";
var bio = "Loading...";
var photoURL = FirebaseAuth.instance.currentUser!.photoURL;
update initState
@override
void initState() {
super.initState();
_auth.currentUser!.reload();
loadUserData();
loadBadges();
}add functionality to loadUserData. and updateUserData
Update getImage -> to store image to storage
image_picker needs access to photos update Info.plist file, located in <project root>/ios/Runner/Info.plist

We can also bring the background illistration for the Courses from storage
Widgets => explore_course_card.dart
modigy getIllustration
Last updated