yuvrajsinghgmx / ShopSmart

ShopSmart is a shopping assistant app that lets you search for products, compare prices from various e-commerce platforms, and find the best deals in one place. You can save favorites, create shopping lists, and stay updated with the latest offers. When you're ready, seamlessly navigate to the respective site to complete your purchase.
MIT License
19 stars 45 forks source link

Solved Issue #238 : Favorite Button #258

Closed Somyajain2004 closed 1 week ago

Somyajain2004 commented 1 week ago

The toggle feature is added to favorite button. On toggling the card is either added or removed from the Favorites page.

Output : Screenshot 2024-11-10 070930 Screenshot 2024-11-10 070901 Screenshot 2024-11-10 065122

As shown is the above Screenshot, Phone 2 is liked, hence it's in Favorite page, and since Phone 1 is not liked, it's not showing in Favorites page.

NOTE : fetch and use realtime user data instead of dummy data to keep the changes saved! (As mentioned in HomeScreenViewModel.kt) As, I have tried the code on temporary demo data, since I wasn't able to access realtime data. Also, i wasn't able to signIn via gmail or Google, is there a issue with that?