I think I found the problem. I was running on web and checking the code of the package i see: extension HiveX on HiveInterface {
Future
initFlutter([String? subDir]) async {
WidgetsFlutterBinding.ensureInitialized();
if (kIsWeb) return;
var appDir = await getApplicationDocumentsDirectory();
init(path_helper.join(appDir.path, subDir)); ....
Can this return statement in case of web be the cause of not storing the localstorage?