Display / View Data Realtime Database  |  Firebase  -  Flutter

Display / View Data Realtime Database | Firebase - Flutter

DevMensIT

3 года назад

10,636 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@officialtrapremix
@officialtrapremix - 27.09.2021 08:38

hey i need your help please its urgent i used your video so display the data from real time database so its displaying all the data
but i want to display single users data only
when the user logins the login data such as name, email, password should be displayed on homescreen (that too the current user only )

Ответить
@kms12317
@kms12317 - 02.11.2021 23:59

how to use conditions(get users where age ==24)
and if i have field that is array of objects [{}.{}.{}] how to get it from main list which we loop on

Ответить
@espadillaowenpatrickp.7306
@espadillaowenpatrickp.7306 - 15.01.2022 10:18

can you share the code please i need to study it thankyou

Ответить
@mariapruss5639
@mariapruss5639 - 28.02.2022 18:37

Hi thanks for the video can you please help me I get a line error Text(snapshot.value["name"]),
The method '[]' can't be unconditionally invoked because the receiver can be 'null'.
Try making the call conditional (using '?.') or adding a null check to the target ('!').
Maybe you know the reason?

Ответить
@fathallahamina1536
@fathallahamina1536 - 15.04.2022 15:10

hello! your code works only to get all the data from database but i want to display the user email data only from the child('users') only can you help me? !
i have used this:
DatabaseReference userRef = FirebaseDatabase.instance.reference().child('users');
userRef.once().then((snapshot) {
//here i get all the data
print(snapshot.snapshot.value);
});
and when i use this : snapshot.snapshot.value['email']; i get an error

Ответить
@diabeticvirus374
@diabeticvirus374 - 04.05.2022 19:40

i have this error .. The operator '[]' isn't defined for the type 'Object'.
Try defining the operator '[]'
any solutions?

Ответить
@diabeticvirus374
@diabeticvirus374 - 04.05.2022 21:19

To anyone having this error
" The operator '[]' isn't defined for the type 'Object'. Try defining the operator '[]'"
just change to this ===> Text(snapshot.child('YOURFEILDKEY').value.toString())
and u will be able to retrive the feild u want XD

Ответить
@tomwall-7456
@tomwall-7456 - 09.08.2022 21:11

Hello pls can you show your firebase dependency ? i use a newer version and it's show me an error when i write :
"subtitle: snapshot.value['name'],"

Ответить