simple_state_package 0.0.1 copy "simple_state_package: ^0.0.1" to clipboard
simple_state_package: ^0.0.1 copied to clipboard

A simple and custom Flutter state management solution.

simple_state #

A simple and lightweight state management package for Flutter, built without using any existing state management packages like Provider, Riverpod, etc.

Features #

  • Manage simple and complex state (primitive, list, map, etc.).
  • Efficient UI updates: Only rebuilds when relevant state changes.
  • Supports both synchronous and asynchronous state updates.
  • Easy integration into existing Flutter apps.

Getting Started #

1. Add to your pubspec.yaml: #

dependencies:
  simple_state:
    git:
      url: https://github.com/BuiTuanAnh2001/SimpleStatePackage

(or once published: just use simple_state: ^0.0.1)

2. Example Usage: #

final counter = StateManager().create<int>('counter', 0);

StateBuilder<int>(
  keyName: 'counter',
  builder: (context, value) => Text('Count: $value'),
);

License #

MIT

0
likes
120
points
128
downloads

Publisher

unverified uploader

Weekly Downloads

A simple and custom Flutter state management solution.

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on simple_state_package