Flutter从Firebase获取用户数据 [英] Flutter get User Data from Firebase
本文介绍了Flutter从Firebase获取用户数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从Firebase获取用户数据,我需要用户的 diplayName
。有什么办法用他的 uid
获取另一个用户的 displayName
?
I want to get User Data from firebase, I need the diplayName
of a User. is there any way to get the displayName
of a other user with his uid
?
推荐答案
您无法获取当前未使用FirebaseAuth登录的用户的名称或任何其他详细信息。
You can't get the name, or any other details of a user that is not currently signed in using FirebaseAuth.
相反,您必须在数据库中创建一个存储名称的节点,并通过查询数据库来存储其他必要的详细信息。
Instead, you must create a node in your database where you store the name, and any other necessary details by querying the database.
这篇关于Flutter从Firebase获取用户数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文