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.
Hi @Rayv1 ,
have you tried to import package:hive_flutter/hive_flutter.dart?
yep, just forgot to import the second package
i am getting the same issue, I have imported the hive_flutter package.
hive: ^1.4.1+1
hive_flutter: ^0.3.0+2
You need to import both hive and hive_flutter.
Just add import 'package:hive_flutter/hive_flutter.dart';
Little explanation: initFlutter() is extension and Android Studio currently doesn't support importing extensions for Dart, that's why we have to setup import manually
IDE issue
Most helpful comment
Hi @Rayv1 ,
have you tried to import
package:hive_flutter/hive_flutter.dart?