Posts

Image
Hive Database with Type Adapter In Flutter     Hive is a lightweight and blazing fast key-value database written in pure Dart. we can use hive for large data storing because it support custom models in a very easy way. in this blog post we are going to register our custom model class in hive database and perform crud operation. let take the example of saving registered user data using our custom model. and look into changes in data on user profile screen. Let's Begin. ⌚ what we need: 1.  hive_flutter 2.  hive 3.  hive_generator 4.  build_runner   add the above packages in pubspec.yml file. NOTE. the 3 and 4 packages should be added under  dev_dependencies as shown below . now let create our model class shown below. now let's explain what we did in our model class. part. we are passing a string which will be our hiveAdapterClass name          the name should be same otherwise your adapter class ...