Home > Net >  How to implement Room in flutter?
How to implement Room in flutter?

Time:01-23

I'm currently using shared preferences to store network data (API fetched) locally. The problem with shared preferences is that, it is meant to store small amounts of primitive data. I'm dealing with a decent amount of data and for that reason I want to implement SQLITE with Room in flutter.

CodePudding user response:

I believe that Room is not available for Flutter but that Moor (apparently Room for Flutter) is. Moor is also a wrapper around SQLite.

Perhaps consider looking at https://drift.simonbinder.eu/docs/getting-started/

CodePudding user response:

Found floor, which works exactly like Room. I can create DAO objects and add entities to my SQLite DB, which is what I was looking for.

  •  Tags:  
  • Related