Closed Uttkarsh-raj closed 1 year ago
@Debajyoti14 Please review this pr . I have added the new widgets and refactored the code. Also the star icon state and the widgets are now being saved even after restarting the app after the local storage integration.
@Debajyoti14 this was a level 3 issue but the merged tag is of level 2 can you check this ?
Pull Request Template
Description:
The add to favorites feature is now fully completed with the recently added widgets and code refactoring of previously written code. The state of the star icon too is not lost so it is clear whether the widget has already been starred or not.
Changes Made:
A new function to the provider which checks if the widgets index is already present or not . If the widget is present it changes the star icon to yellow. This way the state of icon is preserved even after closing and reopening the app. Prior to this the state was lost.
Related Issue:
This pull request is regarding the issue that was raised and i have fixed #174 .
Screenshots/GIFs:
The state of the widgets icon was not been stored and lost.
The function helps restore the state and also make changes in realtime.
Testing Done:
The testing is really easy try adding and removing different widgets from different categories to see the widgets getting added and removed in and from the favorites page .
Additional Notes:
The new widgets which were recently added were also added to this project in this pull request.
Checklist:
Please review and merge this PR at your earliest convenience.
Thank you!