stateplus 0.1.0-dev.1 copy "stateplus: ^0.1.0-dev.1" to clipboard
stateplus: ^0.1.0-dev.1 copied to clipboard

A minimal, high-performance reactive state management and navigation solution for Flutter. StatePlus is designed to eliminate boilerplate, avoid unnecessary rebuilds, and unify state + navigation int [...]

StatePlus ⚡ #

Pub Version | License: MIT

A minimal, high-performance reactive state management and navigation solution for Flutter.

StatePlus is designed to eliminate boilerplate, avoid unnecessary rebuilds, and unify state + navigation into a single reactive system.


✨ Features #

  • ⚡ Fine-grained reactivity (only rebuilds what changes)
  • 🧠 Simple primitives: Signal, Computed, Effect
  • 🧱 Minimal rebuild widgets (StateWidget)
  • 🧭 State-driven navigation (no Navigator push/pop)
  • ❌ No BuildContext dependency for state
  • ❌ No code generation
  • 🚀 Extremely fast & predictable

📦 Installation #

dependencies:
  stateplus: ^0.1.0-dev.1

🧠 Core Concepts: #

Concept Description
Signal Reactive value holder
Computed Derived reactive value
StateWidget Widget that rebuilds only when needed
RouteState Navigation as state

🧪 Basic Example: #

final counter = Signal(0);
final doubleCounter = Computed(() => counter.value * 2);

StateWidget(
    builder: () => Text('Count: ${counter.value}'),
)

🧭 Navigation as State: #

final router = RouteState();
router.go('/details');

StateRouter(
router: router,
routes: {
    '/': () => HomePage(),
    '/details': () => DetailsPage(),
 },
);

No Navigator.push, no BuildContext. #

🔥 Why StatePlus? #

Library Problem
Bloc Too much boilerplate
Provider Context-heavy
Riverpod Over-abstracted
Redux Verbose & rigid
  • StatePlus = minimal + predictable + fast

🚧 Roadmap: #

  • Async signals
  • Error handling
  • Scoped state trees
  • URL sync for Flutter Web
  • DevTools integration

🤝 Contributing #

  • PRs are welcome.
  • Please open an issue before major changes.
0
likes
0
points
126
downloads

Publisher

unverified uploader

Weekly Downloads

A minimal, high-performance reactive state management and navigation solution for Flutter. StatePlus is designed to eliminate boilerplate, avoid unnecessary rebuilds, and unify state + navigation into a single reactive system.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on stateplus