Skip to content
pubscout

elementary_helper

1.1.0, released 8 months ago by elementaryteam.dev

Helpers for the Elementary architecture including state notifiers, builders, and execution mixins.

WASM-ready
$ flutter pub add elementary_helper
Source repository

What it does

Provides utility widgets and state management notifiers specifically designed to complement the Elementary architecture library. It includes reactive builders for single or multiple sources, and task execution mixins for managing async operations safely within model lifecycles.

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

Use it when

  • You are building a Flutter application using the Elementary architecture package.
  • You need state notifiers that do not require an initial value or handle loading/error states like EntityStateNotifier.
  • You want to manage async task execution and automatically handle errors tied to a model's lifecycle.

Skip it when

  • You do not use the Elementary architecture in your Flutter application.
  • You prefer alternative state management solutions such as Bloc, Riverpod, or Provider without Elementary.

Strengths

  • Seamlessly integrates with the Elementary MVVM stack.
  • Provides multi-source builders for combining multiple listenables.
  • Includes lifecycle-aware execution helpers to prevent updating disposed models.

Weaknesses

  • Tied tightly to the Elementary ecosystem, limiting its usefulness in standard Flutter apps.
  • Limited documentation outside of basic README examples.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Add elementary_helper to pubspec.yaml along with the elementary dependency.

final _somePropertyWithIntegerValue = StateNotifier<int>();

StateNotifierBuilder<int>(
  listenableState: _somePropertyWithIntegerValue,
  builder: (ctx, value) {
    return Text('$value');
  },
);

Alternatives

Packages that do the same job and could replace elementary_helper.

  • yx_state

    A state management library for Dart and Flutter applications.

  • bloc_tools

    Command-line tools for generating and linting bloc and cubit components.

  • cached_query

    Library for caching, background fetching, and managing server state in Dart and Flutter.

  • built_redux

    A state management library written in dart that enforces immutability

Works with

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