Created favorite.dart file that displays items marked as favorites by the user.
Integrating with Explore Page:
Modified the explore.dart file to allow users to select and mark items as favorites.
Added functionality to update the UI in real-time when items are marked/unmarked as favorites.
State Management:
Implemented state management using the Provider package to handle the state of favorite items across the application.
Local Storage:
Used shared_preferences to persist favorite items locally on the user's device. This ensures that favorite items are retained even after the app is closed and reopened.
Files Changed:
explore.dart
favorites.dart
main.dart
Additional necessary files for Provider setup and shared preferences integration.
Created Favorite Page:
favorite.dart
file that displays items marked as favorites by the user.Integrating with Explore Page:
explore.dart
file to allow users to select and mark items as favorites.State Management:
Provider
package to handle the state of favorite items across the application.Local Storage:
shared_preferences
to persist favorite items locally on the user's device. This ensures that favorite items are retained even after the app is closed and reopened.Files Changed:
explore.dart
favorites.dart
main.dart
https://github.com/VaibhavCodeClub/learn/assets/98540540/ea4622a7-d6ee-4477-b5bf-b5edbfaf82e4
fixes Issue #194