Skip to content
pubscout

flutter_mobx

2.4.0, released 2 months ago by vyuh.tech

Flutter integration for MobX, providing reactive Observer widgets.

Flutter FavoriteWASM-readyRock solid
$ flutter pub add flutter_mobx
Source repository

What it does

Integrates MobX state management into Flutter by providing an Observer widget that listens to observables and automatically rebuilds widgets when tracked properties change.

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

Use it when

  • You use MobX for state management in your Dart or Flutter application
  • You want automatic UI rebuilding when observables change without manual subscription management

Skip it when

  • You prefer other state management solutions like Riverpod or BLoC
  • You do not want to use MobX observables in your project

Strengths

  • Automatic tracking of observables inside the Observer widget
  • Seamless reactive programming model for Flutter

Weaknesses

  • Tied specifically to the MobX ecosystem
  • Requires proper structuring of observables to avoid unnecessary rebuilds

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Add flutter_mobx, mobx, and provider to your dependencies.

Observer(
  builder: (_) => Text(
    '${_counter.value}',
    style: const TextStyle(fontSize: 20),
  ),
)

Alternatives

Packages that do the same job and could replace flutter_mobx.

  • riverpod

    Provides a robust, compile-safe alternative for state management and dependency injection.

  • flutter_bloc

    Uses a predictable events-to-states architecture with clear separation of concerns.

Works with

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