ConnectUni / connectuni

ConnectUni is a mobile application designed for college students to connect with each other in group chats and events through similar interests and classes.
https://connectuni.github.io/
1 stars 0 forks source link

Update and implement the UserDB database #37

Closed sanehirakenji closed 1 year ago

sanehirakenji commented 1 year ago

Do work for this in issue-037.

Update and implement the user database we discussed in class on Thursday. It should contain realistic database items as well as getter/setter methods as needed.

michho8 commented 1 year ago

Bug in this line of code: return allUsers.firstWhere((user) => user.name == name); This is in the getUserByName function in user.dart. Will not throw error if user.name changed to user.uid. We're trying to search the user by their name, not by uid.

Related: ...usersDB .getUsers() .map((uName) => UserCardSearch(name: uName.uid)), in friendslist and search_people_screen