Fine-grained reactivity
Reacton-level subscriptions mean only the widgets depending on changed state rebuild. No provider pyramids, no wasted frames.
Fine-grained, glitch-free state management for Flutter — with a progressive API that scales from counters to collaborative, offline-first apps.
Reacton grows with your app. Start with the Level 1 primitives, reach for advanced features only when you need them.
Level 1 — 4 lines of state
import 'package:flutter_reacton/flutter_reacton.dart';
final counter = reacton(0, name: 'counter');
final doubled = computed((read) => read(counter) * 2, name: 'doubled');
class CounterPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
final count = context.watch(counter);
final x2 = context.watch(doubled);
return Column(children: [
Text('Count: $count'),
Text('Doubled: $x2'),
ElevatedButton(
onPressed: () => context.update(counter, (c) => c + 1),
child: const Text('Increment'),
),
]);
}
}Reacton ships as a batteries-included monorepo. Pick what you need; nothing is mandatory beyond the core.
Reactive graph engine, primitives, store, effects, async, middleware, persistence, branching, history, CRDT and isolates. Pure Dart.
Read the docs →Flutter bindings — ReactonScope, context extensions, builder widgets, form state, auto-dispose. Re-exports the core package.
Read the docs →TestReactonStore, overrides, effect trackers, fluent assertions and widget pump helpers. Pure Dart, no Flutter required.
Read the docs →`reacton init`, `create`, `graph`, `analyze`, `doctor` — scaffold projects, inspect the dependency graph, and diagnose setups.
Read the docs →Flutter DevTools extension — live graph, inspector, timeline, performance view and time-travel debugging.
Read the docs →build_runner builders for `@ReactonSerializable`, dependency-graph analysis and dead-reacton detection. Optional.
Read the docs →Three custom_lint rules: avoid_reacton_in_build, avoid_read_in_build, prefer_computed. Catches classic mistakes at compile time.
Read the docs →VS Code extension — code lens, hover, diagnostics, inline graph preview and snippets for every Reacton primitive.
Read the docs →One import. Zero boilerplate. A progressive API that scales from counters to collaborative, offline-first apps.
flutter pub add flutter_reacton