diff --git a/README.md b/README.md index b046235d1..fd2cc6136 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Hive needs a place to call home. Using `path_provider` we can find a valid direc void main() async { WidgetsFlutterBinding.ensureInitialized(); final dir = await getApplicationDocumentsDirectory(); - Hive.defaultDirectory = dir.path; + Hive.init(dir.path); // ... }