hive_box_manager 1.2.0
hive_box_manager: ^1.2.0 copied to clipboard
Typed, fpdart-first boxes over hive_ce. Reads return an Option instead of null, writes are lazy Tasks, CRUD comes ready-made, and each shape of data gets its own box.
import 'package:flutter/widgets.dart';
import 'package:hive_ce_flutter/hive_flutter.dart';
import 'package:platform_adaptive_widgets/platform_adaptive_widgets.dart';
import '/features/core/data/constants/demo_theme.dart';
import '/features/core/views/home_hub_view.dart';
Future<void> main() async {
// Engine setup stays hive_ce's one-liner. Every box open below goes through the façades.
await Hive.initFlutter();
runApp(const HbmExampleApp());
}
class const HbmExampleApp({super.key}) extends StatelessWidget {
@override
Widget build(BuildContext context) => PlatformApp(
title: 'hive_box_manager demos',
debugShowCheckedModeBanner: false,
materialAppData: MaterialAppData(theme: DemoTheme.material),
cupertinoAppData: const CupertinoAppData(theme: DemoTheme.cupertino),
home: const HomeHubView(),
);
}