Closed skyturkish closed 2 years ago
I don't get it, basic firebase operation causes both errors #44 and #45
late final Reference storageRef; late final Reference imageRef; Uint8List? photo; @override void initState() { storageRef = FirebaseStorage.instance.ref(); imageRef = storageRef.child(widget.user.profilePhotoPath); getImage(); super.initState(); } Future<void> getImage() async { photo = await imageRef.getData(); setState(() {}); }
when I delete getImage(), it is fixed
I transfer getImage to in GetUserInformations function which one I run at initialize time, that fixed it
I don't get it, basic firebase operation causes both errors #44 and #45