'How to observe the local db changes using getx in flutter
I am facing issue while observing the last changes in local database but without using the fetch query. I want the list to be updated automatically on ui whenever the database changes are there. Scenario: On launch of app i am hitting an api which will return the user details and inserting the user details in local database. By the time the home screen appears the database is not filled and return the empty details of user. So I want to observe/listen the database changes of user and update the Ui without using the fetch query again and again in flutter. Also I am using getx as the state management library and floor as local database. I would appreciate if anyone can help me in this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
