Skip to content
pubscout

hive_ce_generator

1.12.1, released 3 weeks ago by iodesignteam.com

Automatically generates TypeAdapters for Hive to store custom classes.

Rock solid
$ flutter pub add hive_ce_generator
Source repository

What it does

Automatically generates TypeAdapters for Hive to store any class. It provides schema migration and generates a HiveRegistrar extension to register all generated TypeAdapters in one call.

AI-written summary of version 1.12.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are using hive_ce for local storage and need to store custom Dart classes
  • You want automated TypeAdapter generation instead of writing them manually

Skip it when

  • You are not using hive_ce
  • You prefer runtime reflection or manual adapter writing without code generation

Strengths

  • Automates TypeAdapter generation for custom classes
  • Supports generator annotations like GenerateAdapters and schema migration

Weaknesses

  • Requires running a code generator setup
  • Documentation points externally to hive_ce

Setup

Kind
Pure Dart
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
10

Requires setting up build_runner to run code generation for Hive adapters.

not documented

Alternatives

Packages that do the same job and could replace hive_ce_generator.

Works with

Packages commonly used together with hive_ce_generator: ones it builds on, ones built on it, and its own family.