![]() Package:flutter/…/gestures/recognizer.dart Package:flutter_form_builder/…/fields/form_builder_image_picker.dart ![]() Package:flutter_form_builder/src/form_builder_field.dart Package:my_docs/service/firestore_storage.dart [38 5 248mE/flutter (25275): #12 CloudStorageService.uploadImage (package:my_docs/service/firestore_storage.dart)[39 49m Package:my_docs/widgets/dynamic_field.dart I/chatty (25275): uid=10148(_docs) FinalizerDaemon identical 1 lineĮ/flutter (25275): Unhandled Exception: NoSuchMethodError: The getter 'imageUrl' was called on null.Į/flutter (25275): Tried calling: imageUrl W/System (25275): A resource failed to call release. Var downloadUrl = await firebaseStorageRef.getDownloadURL() UploadTask uploadTask = firebaseStorageRef.putFile(imageToUpload, metadata) The future Future BuildContext File String String requestId}) async ") Return jsonEncode(_imageList.toString()) įile file = new File(()) Im expecting the future to complete, adding the download link to a list of strings in the state return FormBuilderImagePicker( ![]() The variable "value" never seems to get populated with anything and i'm assuming the add call fails because imageUrl is null Im getting an error after calling the future uploadImage with the then() part. In particular i'm using the FormBuilderImagePicker control to allow the user to select a photograph from either the gallery or camera. Im using the package flutter_form_builder to collect data in my application.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |