New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The method 'initFlutter' isn't defined for the class 'HiveInterface' #239
Comments
Hi @Rayv1 , |
yep, just forgot to import the second package |
i am getting the same issue, I have imported the hive: ^1.4.1+1 |
You need to import both |
Just add Little explanation: |
IDE issue |
You must add |
you should add hive_flutter in pubspec.yaml and import 'package:hive_flutter/hive_flutter.dart'; |
Hi,
iam trying to init Hive in Main Function with Hive.initFlutter(); as described in your documents. Unfortunately my VS Code shows "The method 'initFlutter' isn't defined for the class 'HiveInterface'."
Maybe i missed a additional step to make it work.
hive: ^1.4.1
hive_flutter: ^0.3.0+2
dev_dependencies:
hive_generator: ^0.7.0+2
build_runner: ^1.7.4
The text was updated successfully, but these errors were encountered: