hive_box_manager 1.2.0 copy "hive_box_manager: ^1.2.0" to clipboard
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.

example/lib/main.dart

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(),
  );
}
3
likes
160
points
237
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#hive #database #nosql #functional-programming #type-safety

License

MIT (license)

Dependencies

collection, fpdart, hive_ce, meta

More

Packages that depend on hive_box_manager