Category "flutter-hive"

When / where is the best time / location to "open" HiveDB boxes in a Flutter app?

According to the HiveDB docs, when you "open" a box using Hive.openBox<E>('testBox'); all the data contained within the box is loaded into memory for imme

I get a weird error when trying to initialize Hive

Error: Unhandled Exception: HiveError: You need to initialize Hive or provide a path to store the box. Essentially I have these in my dependencies so everything

how to solve dynamic list type casting error in Hive?

sorry I am new in using Flutter and using Hive local storage. I am using hive: ^2.0.4 hive_flutter: ^1.0.0 I open the box in main function like this Future

Flutter Hive - how to locate box files

This may be obvious, but can someone please tell me how I can locate my Hive Box file after initialising Hive in a Flutter application, using Android Studio? I

RangeError (index): Index out of range: no indices are valid: 0

I got this when I was using Hive Database in Flutter. Find out answer below

Flutter Hive save custom object with list of custom objects gone after restarting app

I am using the Hive- Package in my project to store some data locally. That has been working fine so far, but now I am facing an issue: I have a Custom-Class wh

Flutter delete Hive Database on Update

I have a Flutter app and I am using Hive to store data. I have deleted some adapters which were used previously. This caused an error and I have to delete the o

Flutter how to cast the model object to another model to save it to HIVE

I have an API response and parsed it using ProductsModel and I am trying to save it to my local storage using Hive and I have different model called LocalProduc