flutter_getx_template icon indicating copy to clipboard operation
flutter_getx_template copied to clipboard

Integrate Local database (SQLite) for offline support

Open hasancse91 opened this issue 4 years ago • 8 comments

  • [ ] Use floor package
  • [ ] Store all API response in local DB (Inside remote data source, we have to call local data source to store the data)
  • [ ] When controller call to repository for data, repository will check it first at local data source. If available simply return it and then call to remote data source. When remote data source get response from server, it should update local data source.
  • [ ] In offline mode user can see the previous stored data
  • [ ] Make a favorite icon in repository list item. This favorite data will store in local db.
  • [ ] All favorite repositories will be shown in Favorite page (middle of the bottom tab)

hasancse91 avatar Oct 15 '21 05:10 hasancse91

Hello, I am eagerly waiting for these functionalities to be added to flutter_getx_template. Can anyone tell when this will be implemented?

jitenders859 avatar Jan 06 '22 03:01 jitenders859

Hello, I am eagerly waiting for these functionalities to be added to flutter_getx_template. Can anyone tell when this will be implemented?

Ing Sha Allah you will get it within next week.

hasibul-hasan-shuvo avatar Jan 06 '22 05:01 hasibul-hasan-shuvo

@Shuvo1260 Please let me know if you are working on this. also I can help with implementing sqlite in the architecture.

jitenders859 avatar Jan 28 '22 04:01 jitenders859

@jitenders859 You're welcome to contribute here. You can clone, develop and create a PR. We will review and merge it.

shafayathossain avatar Jan 29 '22 07:01 shafayathossain

@shafayathossain Sure will clone and try to contribute.

jitenders859 avatar Jan 30 '22 05:01 jitenders859

@shafayathossain can I use hive instead of sqlite

jitenders859 avatar Jan 30 '22 10:01 jitenders859

We want to implement floor package here. Shuvo is working on it.

hasancse91 avatar Jan 30 '22 13:01 hasancse91

Thank you @hasancse91 for very good template :) I'm not sure whether local database was implemented by Shuvo ?

vankhoa01 avatar Sep 08 '22 03:09 vankhoa01