skip to Main Content

how to call a method from another dart file? – Flutter

in my programme i want to call the same path inside a methode called getPhoto()=>upload(statefulwidget) to other file or statefulwidget Future getPhoto() async{ FirebaseFirestore fearbase = FirebaseFirestore.instance; Reference ref=FirebaseStorage.instance .ref() .child("${widget.user}/ProfileData") .child("Url_$postId"); await ref.putFile(file!); downloadUrl=await ref.getDownloadURL(); // upload image to…

VIEW QUESTION

I can't solve fluttertoast error in android studio version: fluttertoast: ^8.1.2 >flutter –version Flutter 3.3.10 plz help me

Launching libmain.dart on sdk gphone x86 in debug mode... Running Gradle task 'assembleDebug'... ../flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-8.1.3/lib/fluttertoast.dart:165:28: Error: Member not found: 'Overlay.maybeOf'. var _overlay = Overlay.maybeOf(context!); ^^^^^^^](https://i.stack.imgur.com/LFZTA.png) I changed fluttertoast version but I got the same error above.

VIEW QUESTION
Back To Top
Search