Skip to content

Commit

Permalink
Added missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dasmikko committed Aug 17, 2019
1 parent bfac174 commit 3164b4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/helpers/hiveHelper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ class AppHiveBox {
}

static Future<Box> getBox() async {
return Hive.openBox('knockyBox', compactionStrategy: (entries, deletedEntries) {
var box = await Hive.openBox('knockyBox', compactionStrategy: (entries, deletedEntries) {
return deletedEntries > 50;
});
return box;
}
}
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dependencies:
tweet_ui: ^0.1.1
audioplayers: ^0.13.1
seekbar: ^0.0.2
path_provider: ^1.2.0
flutter:
sdk: flutter

Expand Down

0 comments on commit 3164b4c

Please sign in to comment.