skip to Main Content

Firebase – lib/logger/compat is not defined

After updating my Firebase dependencies (need new features) i've been trying to deploy them without success. firebase deploy --only functions Before the update everything worked fine. Here is the Firebase documentation page for logging. https://firebase.google.com/docs/functions/writing-and-viewing-logs#custom-logs require("firebase-functions/lib/logger/compat"); Now the logging fails…

VIEW QUESTION

Firebase – type 'TextEditingController' is not a subtype of type 'String'

I am trying to signup the user but getting this error type 'TextEditingController' is not a subtype of type 'String' Here is my code: import 'package:get/get.dart'; import 'package:get/get_core/src/get_main.dart'; import 'package:get/get_navigation/get_navigation.dart'; import 'package:shoppingmart/common_widget/app_logo_widget.dart'; import 'package:shoppingmart/common_widget/bg_widget.dart'; import 'package:shoppingmart/common_widget/custom_textfield.dart'; import 'package:shoppingmart/common_widget/our_button.dart'; import 'package:shoppingmart/const/consts.dart';…

VIEW QUESTION

Is there a way to add fields to all documents in firebase – my new registration system includes firstname and last name?

So i’m getting the obvious error of undefined name CloudNote.fromSnapshot(QueryDocumentSnapshot<Map<String, dynamic>> snapshot) firstName = snapshot.data()[firstNameFieldName] as String; lastName = snapshot.data()[lastNameFieldName] as String; I know the painful option of manually adding the field but…..last resort. Strange that the Firestore Database doesn’t…

VIEW QUESTION
Back To Top
Search