libsignal_protocol_hive_store 0.0.1 libsignal_protocol_hive_store: ^0.0.1 copied to clipboard
This package is for developers who use hive with libsignal protocol.
import 'package:flutter/material.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'package:libsignal_protocol_hive_store/libsignal_protocol_hive_store.dart';
import 'homepage.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await initHive();
runApp(const MyApp());
}
initHive() async {
await Hive.initFlutter();
await HiveSignalStore.initialize(Hive);
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Hive Signal Protocol',
theme: ThemeData(
primarySwatch: Colors.indigo,
primaryColor: Colors.indigo,
),
home: const HomePage(),
);
}
}