Skip to content
pubscout

elementary

3.2.1, released a year ago by elementaryteam.dev

An MVVM architecture library for Flutter that separates UI, logic, and data layers.

WASM-ready
$ flutter pub add elementary
Source repository

What it does

Elementary provides widgets, view models, and models that work together to keep the UI declarative while allowing business logic to be testable and independent. It uses an observer pattern to rebuild only the parts of the UI that depend on changing state.

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

Use it when

  • You want clear separation of concerns between UI and logic
  • You need efficient rebuilds with minimal boilerplate
  • You prefer a declarative UI approach with testable business logic

Skip it when

  • You are already using another state‑management solution like Riverpod or Bloc
  • You need advanced dependency injection or navigation features not covered by Elementary

Strengths

  • Clear layer separation
  • Efficient rebuilds via observer pattern
  • Easy to test business logic

Weaknesses

  • Limited to MVVM; no built‑in navigation or DI
  • Requires learning its specific widget and model classes

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Alternatives

Packages that do the same job and could replace elementary.

  • yx_state

    A state management library for Dart and Flutter applications.

  • bloc_tools

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

  • riverpod

    A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.

  • cached_query

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

Works with

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