Steelhacks-2023 / Lost-At-Pitt

Lost @ Pitt is a multi-platform lost-and-found tracking application, allowing users to return & reclaim lost items. Currently in development!
https://steelhacks-2023.github.io/Lost-At-Pitt/
6 stars 0 forks source link

File structure refactoring, fixed AppUser streaming via Provider #55

Closed tbeidlershenk closed 7 months ago

tbeidlershenk commented 7 months ago

Changes

  1. Changed folder structure to better categorize files and renamed some files / class names to match each other
  2. Fixed the AppUser stream in MultiProvider in main.dart in order to stream the user's data from Firestore based on the auth user
  3. Boy scout rule'd some files ~ most notably I made FirestoreService and AuthService to have only static methods (we were instancing these classes when we needed to use their methods, it didn't really make sense)
  4. Updated Wrapper to map to LoadingAnimation if the AppUser Provider hasn't received data yet

Notes

I think the way I did change # 4 is kind of bad let me know if you don't get what I did or have a better idea of how to do it. Also you can verify that the AppUser stream is working by looking in ProfilePage, it loads the first name of the user which is one of the fields that is only stored in Firestore, not in Firebase Auth