june
1.0.2, released 5 months ago by junelee.fun
A lightweight, modern state management library with a Flutter-like API.
WASM-ready
What it does
June provides shared, reactive state that works similarly to Flutter's native state management without needing widget tree dependencies. It supports global state access, tags for multiple instances, and partial rebuilds via IDs.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want state management that feels like native Flutter setState
- You need global or per-widget state without heavy boilerplate
- You want support for multiple instances using tags and selective rebuilds using IDs
Skip it when
- You prefer strict immutable state stores like BLoC or Redux
- You require built-in stream-based architectures
Strengths
- Very simple and quick to set up with minimal boilerplate
- No MaterialApp wrapper or manual initialization required
- Supports multiple tagged instances and per-widget local state
Weaknesses
- Relies on mutable state modification followed by setState() calls
- Smaller ecosystem and community compared to alternatives like Provider, Riverpod, or Bloc
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
class CounterVM extends JuneState {
int count = 0;
void increment() {
count++;
setState();
}
}
JuneBuilder(
() => CounterVM(),
builder: (vm) => Text('${vm.count}'),
)Alternatives
Packages that do the same job and could replace june.