Skip to content
pubscout

flutterx_live_data

2.0.1, released 5 weeks ago by an unverified publisher

Observable data holders inspired by Android LiveData with lazy activation and history.

WASM-readyUnverified publisher
$ flutter pub add flutterx_live_data

What it does

Provides observable data holders, one-shot events, reactive mediators, history, persistence, and collection wrappers inspired by Android LiveData. Integrates with Flutter through dedicated widget builders and an observer mixin.

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

Use it when

  • You want Android LiveData style observables in Flutter
  • You need undo/redo history or persistence for individual state objects and collections
  • You prefer an imperative/reactive wrapper model without code generation

Skip it when

  • You are already using a different major state management solution like BLoC or Riverpod
  • You require complex unidirectional data flow architectures

Strengths

  • Includes built-in support for collections, events, history, and storage
  • Seamlessly integrates with Flutter's Listenable and ValueListenable
  • Lazy activation and mediator patterns out of the box

Weaknesses

  • Strict runtime checks that throw StateError on duplicate observers or uninitialized reads
  • Niche state management paradigm tailored after Android LiveData

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
final counter = MutableLiveData<int>(value: 0);

LiveDataBuilder<int>(
  data: counter,
  placeholder: const CircularProgressIndicator(),
  builder: (context, value) => Text('$value'),
)