I have always issues with hive boxies instances and the error of not initilizing the box or adapter so I decided to register them in one place and use it all over place .but I don't event know how to use and register adapters and box
I have nothing tried because I don't know how to implement that
The recommended place to register an adapter using
Hive.registerAdapter()
is immediately after theHive.initFlutter()
finishes, then open your box with the object type that you made the adapter for, like this:now the "questions" box will be available to use directly across your whole app by :