Local storage - Group22-MobileApp/Grupo22-Moviles GitHub Wiki

Local storage strategies

We decided that a good strategy for our app would be to use local storage to store the user's information and the items that the app retrieves from the firebase once it is connected to the internet. The application is meant to retrieve and store locally the items that are being sold or interchanged in the app so that the user can see them even if they are not connected to the internet. This is important because it allows the user to see the items that are being sold even if they are not connected to the internet. The implementation of this strategy needs more work and will be improved in the future. One of the most popular ways to implement local storage in a flutter app is to use the shared preferences package. This package allows you to store key-value pairs on the device and retrieve them when needed. Also, there is another possibility to use SQLite to store the data in a database on the device. This is a more complex and less efficient way to store data locally but it is also a possibility. We will continue to work on the implementation of shared preferences to store the user's information and the items that are being sold in the app.