Closed Tobi696 closed 4 years ago
This seems like an upstream from the storage engine. If you are calling load
before runApp
is ran, this is expected. I'll add a note in the README.
ensureInitialized
is the same as doing runApp
though, so no change is startup speed is expected. It's
Let me know if you have any follow up questions!
Hi @Cretezy , how would you change the code in your Example then, to make it work?
I am struggling to find a solution.
The example code in the readme leads to following Error:
It can be fixed by calling WidgetsFlutterBinding.ensureInitialized(); before calling persistor.load, but this makes the app startup slowly.
Please help!