sourabhkumar47 / ResQFood

ResQFood is a platform dedicated to the noble cause of reducing food wastage by facilitating the redistribution of surplus food during late-night hours before restaurant closures. Our mission is to ensure that excess inventory finds a purposeful destination rather than ending up in landfills, contributing to a more sustainable and compassionate foo
MIT License
20 stars 34 forks source link

Enhancement: Navigation improvement and fixed bugs #96

Closed hemang-mishra closed 4 months ago

hemang-mishra commented 4 months ago

Description

Shifted to type safe navigation. Shifted entire email login and google login logical codebase to viewmodel. Fixed coroutine cancelation exception.

Related Issue

Fixes #95

Changes

  1. Added account services interface for login features.
  2. Changed the main activity to type safe navigation and also added dependencies. Navigation object is just above every screen definition.
  3. Fixed the coroutine cancellation bug during google login. Google login is now using viewmodel scope.
  4. Logical part of google sign in and email authentication shifted to viewmodel.
  5. Created UI state data classes.
  6. Directly navigate to onboarding screen for new users.

Screenshots

WhatsApp Image 2024-06-01 at 10 43 47_501720a1

sourabhkumar47 commented 4 months ago

Great!