BugFix: Key does not exist
parent
87beb2dace
commit
78b9f1bc7b
|
@ -338,6 +338,13 @@ class LikedUsersPageState extends State<LikedUsersPage> {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShowChat: () {
|
onShowChat: () {
|
||||||
|
Map<String, dynamic> userMap =
|
||||||
|
user.data() as Map<String, dynamic>;
|
||||||
|
String? profilePic =
|
||||||
|
userMap.containsKey(Constants.dbFieldUsersProfilePic)
|
||||||
|
? user[Constants.dbFieldUsersProfilePic]
|
||||||
|
: null;
|
||||||
|
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
|
@ -345,7 +352,7 @@ class LikedUsersPageState extends State<LikedUsersPage> {
|
||||||
receiverEmail: user[Constants.dbFieldUsersEmail],
|
receiverEmail: user[Constants.dbFieldUsersEmail],
|
||||||
receiverID: user[Constants.dbFieldUsersID],
|
receiverID: user[Constants.dbFieldUsersID],
|
||||||
chatTitle: user[Constants.dbFieldUsersName],
|
chatTitle: user[Constants.dbFieldUsersName],
|
||||||
profileImageUrl: user[Constants.dbFieldUsersProfilePic],
|
profileImageUrl: profilePic,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue