Upgrade Hive Flutter to null Safety All Data Lost
Open
problem
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
When I update hive ^1.4.2 to ^2.0.3 (null safety), all data is lost, the box is not found, I have to clear the data in the application, then I can create a new box
Future> getGroup() async {
var groupArisans = await Hive.openBox('groupArisan');
_groupArisan = groupArisans.values.toList();
return _groupArisan;
}
**Version**
- Platform: iOS, Android, Mac, Windows, Linux, Web
- Flutter version: 2.0.4
- Hive version: ^2.0.3
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.