libsignal_protocol_hive_store 0.0.1 copy "libsignal_protocol_hive_store: ^0.0.1" to clipboard
libsignal_protocol_hive_store: ^0.0.1 copied to clipboard

This package is for developers who use hive with libsignal protocol.

example/lib/main.dart

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(),
    );
  }
}
1
likes
140
pub points
10%
popularity

Publisher

unverified uploader

This package is for developers who use hive with libsignal protocol.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, equatable, flutter, hive, hive_flutter, libsignal_protocol_dart

More

Packages that depend on libsignal_protocol_hive_store