Get null fields fromJson in Hive

I try to restore Hive database and get null fields in my model Account, but I see fill fields in map with debug mode. <img src="https://i.ibb.co/vPHGZ7r/2.png"...

Hive Error unknown type TimeStamp . did you forget to register an adapter. How to generate TypeAdapter for object type used in external Packages?

My flutter App uses Hive for local data Managing and Firebase for Cloud Data Storage. I have a modal which uses Timestamp and FieldValue from Firebase package....

Flutter RepositoryProvider and Hive LateInitializationError

I have app where I am using Bloc and Hive. main.dart <pre><code>void main() async { WidgetsFlutterBinding.ensureInitialized(); final appDocumentDirector...

Error: type UnspecifiedInvalidResult is not a subtype of type LibraryElementResult in type cast in Flutter Hive

I run <code>flutter packages pug run build_runner build</code>, the normal command with which you would create a TypeAdapter in Flutter, I get the following error:...

Flutter hive box not found even though it was opened

I'm building a flutter app with Hive and I can't solve the error '<code>Box not found. Did you forget to call Hive.openBox()?</code>'. My main method is this: <pre...

Flutter Hive Model Adapter of a model within a model

Using Hive in Flutter, I have to generate a Model Adapater by annotating my Model: <pre><code>import 'package:connectivity/connectivity.dart'; import 'package:flut...

Flutter Hive - Throwing Overflow Error when copying data from Box to List

I am trying to copy the data from a Box (with a TypeAdapter) to a List. I am getting a Stack Overflow error. <strong>Code</strong> <pre><code>List&lt;CardFi...

HiveError: There is already a TypeAdapter

I'm currently implementing <code>Hive</code> in my FlutterApp. Unfortunately this error pops up all the time: <blockquote> HiveError: There is already a TypeAda...

Flutter Hive box empty need hot restart the app

My flutter app contains hive boxes where it loads objectlist from firebase with a streamprovider for each box. After uninstall the hole app including the data f...

Reading Hivebox value is returning List&lt;dynamic&gt; instead of saved List&lt;Object&gt;

I save a List to an index in a Hive Box. <pre><code>class Person { String name; Person(this.name); } List&lt;Person&gt; friends = []; friends.add(Person('Jer...

How to set state of StateNotifierProvider

I want to initialize the state of a StateNotifierProvider after resumed in the lifecycle. <pre><code>// provider final timerProvider = StateNotifierProvider&lt;Tim...

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...

Dart Hive Not Storing pre defined variable

My Hive Modal Class. Below that you can find my generated class. <pre><code>@HiveType(typeId: 1) class Employee { Employee({ required this.employeeId, re...

Riverpods StreamProvider yields StreamValue only once | Flutter &amp; Hive

I wrote a StreamProvider that I listen to right after startup to get all the information about a potentially logged in user. If there is no user, so the outcome would...

Riverpods StreamProvider stuck in loading when reading Hives box | Flutter

I am trying to stream the users data that I saved into a box called 'users' with Hive. This is for showing a screen based on the information provided from the user. Fo...