Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Run and Debug #11

Open
polarycs opened this issue Mar 28, 2022 · 0 comments
Open

Error Run and Debug #11

polarycs opened this issue Mar 28, 2022 · 0 comments

Comments

@polarycs
Copy link

Hi!

Good job with the flutter app 👏
When running the 'merchant' I get the following output in the debug console:

lib/main.dart:1
Warning: Mapping new ns [http://schemas.android.com/repository/android/common/02]() to old ns [http://schemas.android.com/repository/android/common/01]()
Warning: Mapping new ns [http://schemas.android.com/repository/android/generic/02]() to old ns [http://schemas.android.com/repository/android/generic/01]()
Warning: Mapping new ns [http://schemas.android.com/sdk/android/repo/addon2/02]() to old ns [http://schemas.android.com/sdk/android/repo/addon2/01]()
Warning: Mapping new ns [http://schemas.android.com/sdk/android/repo/repository2/02]() to old ns [http://schemas.android.com/sdk/android/repo/repository2/01]()
Warning: Mapping new ns [http://schemas.android.com/sdk/android/repo/sys-img2/02]() to old ns [http://schemas.android.com/sdk/android/repo/sys-img2/01]()
: Error: The getter 'isEmailVerified' isn't defined for the class 'User'.
lib/pages/login.dart:184
- 'User' is from 'package:firebase_auth[/firebase_auth.dart]()' ('.[./../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.11/lib/firebase_auth.dart]()').
package:firebase_auth[/firebase_auth.dart]():1
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEmailVerified'.
                              if (user.isEmailVerified) {
: Error: The getter 'onAuthStateChanged' isn't defined for the class 'FirebaseAuth'.
lib/pages/splash.dart:15
- 'FirebaseAuth' is from 'package:firebase_auth/firebase_auth.dart' ('.[./../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.11/lib/firebase_auth.dart]()').
package:firebase_auth/firebase_auth.dart:1
Try correcting the name to the name of an existing getter, or defining a getter or field named 'onAuthStateChanged'.
      authService.auth.onAuthStateChanged.listen((user) {
: Error: 'currentUser' isn't a function or method and can't be invoked.
lib/pages/splash.dart:22
              user = await authService.auth.currentUser();
: Error: 'currentUser' isn't a function or method and can't be invoked.
lib/pages/verify.dart:74
 FirebaseUser user = await authService.auth.currentUser();
: Error: The method 'sendEmailVerification' isn't defined for the class 'FirebaseUser'.
lib/pages/verify.dart:75
- 'FirebaseUser' is from 'package:ofm_merchant[/providers/auth.dart]()' ('lib[/providers/auth.dart]()').
package:ofm_merchant/providers/auth.dart:1
Try correcting the name to the name of an existing method, or defining a method named 'sendEmailVerification'.
                  user.sendEmailVerification().then((_) {
: Error: The getter 'documents' isn't defined for the class 'QuerySnapshot<Object>'.
lib/providers/db.dart:29
- 'QuerySnapshot' is from 'package:cloud_firestore[/cloud_firestore.dart]()' ('.[./../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-3.1.10/lib/cloud_firestore.dart]()').
package:cloud_firestore/cloud_firestore.dart:1
 - 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'documents'.
          productsSnapshot.documents
: Error: The method 'document' isn't defined for the class 'CollectionReference<Map<String, dynamic>>'.
lib/providers/db.dart:46

And many similar errors... any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant