FLUTTER ECOSYSTEM

hive_ce_generator

Extension for Hive. Automatically generates TypeAdapters to store any class.

Latest version
1.11.1
30-day downloads
173.4K
Likes
36
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

Hive CE Generator is a Flutter/Dart package that automatically generates TypeAdapters for Hive, enabling seamless serialization and storage of custom classes. By using code generation, it eliminates the need to manually write TypeAdapter implementations, reducing boilerplate and potential errors. The generator works with any class, including those with complex nested structures, and integrates smoothly into existing Hive-based applications. It supports all major platforms, ensuring consistent behavior across Android, iOS, macOS, Windows, and Linux.

Use cases
  • Automatically generate TypeAdapters for custom data models
  • Simplify persistent storage of complex object hierarchies
  • Reduce manual boilerplate in Hive serialization
  • Enable rapid development with Hive-backed apps
  • Support cross-platform data persistence
Key features
  • Code generation for TypeAdapters
  • No manual adapter implementation required
  • Supports nested and complex types
  • Integrates with Hive's existing API
  • Cross-platform compatibility
Suitable for
  • Developers using Hive for local storage
  • Projects requiring fast, type-safe data persistence
  • Teams aiming to reduce boilerplate in data layer
  • Apps targeting multiple platforms with shared data models
Considerations
  • Requires build_runner for code generation
  • Needs proper annotation on target classes
  • May increase build time slightly
  • Depends on Hive and hive_generator dependencies
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add hive_ce_generator

Categories

Source repository

Related projects