mogol / flutter_realm

Realm via Platform Channels
https://pub.dev/packages/flutter_realm
MIT License
115 stars 18 forks source link

fetchWidget record not found when reload #7

Open simkosal opened 4 years ago

simkosal commented 4 years ago

the example in the repo is not working, when I add a record to the fetchWidget and after a reload the item is not there!

recvec commented 4 years ago

@masiJR I found out, that this problem based on the configuration parameter, that we use while opening Realm. I tried to set it as some const, but it didn't work, so I just put this Configuration as default. Something like that: Realm realm; final configuration = Configuration(); realm = await Realm.open(configuration); After that the data is stored and can be reopened.