Skip to content
pubscout

zenify

2.3.1, released 3 months ago by pixel-innovations.com

Complete state management with hierarchical dependency injection and async query caching.

WASM-ready
$ flutter pub add zenify
Source repository

What it does

Zenify is a Flutter state management framework providing hierarchical dependency injection, automatic query caching, and offline-first resilience. It features zero boilerplate and no code generation, letting you tie controllers and data queries directly to widget scopes and routes.

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

Use it when

  • You want built-in TanStack Query style async state handling without code generation
  • You need hierarchical, route-scoped dependency injection with automatic cleanup
  • You require offline-first persistence and automatic request deduplication

Skip it when

  • You prefer strict BLoC architecture and event-stream separation
  • You already use Riverpod or Provider and want to stick to those ecosystems

Strengths

  • Built-in query caching, deduplication, and offline-first resilience
  • Automatic lifecycle management and memory cleanup via scoped DI
  • Zero boilerplate and zero code generation requirements

Weaknesses

  • Smaller ecosystem and community compared to mature solutions like Riverpod or Bloc
  • Global and scope-based mutable patterns might not fit strict functional programming preferences

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Initialize via Zen.init() in main() and configure routes with ZenRoute and ZenModule.

class CounterController extends ZenController {
  final count = 0.obs();
  void increment() => count.value++;
}

Alternatives

Packages that do the same job and could replace zenify.

  • riverpod

    Compile-safe dependency injection and robust provider patterns with a massive community.

  • bloc

    Strict, predictable state management based on event streams and clear state transitions.

  • provider

    Simple, lightweight state management built natively around Flutter's InheritedWidget architecture.