flutty_state 0.1.0
flutty_state: ^0.1.0 copied to clipboard
Lightweight and reactive state management solution for Flutter.
flutty_state #
Lightweight and reactive state management solution for Flutter.
Installation #
dependencies:
flutty_state: ^0.1.0
Usage #
import 'package:flutty_state/flutty_state.dart';
// Create a notifier
final counter = FluttyNotifier<int>(0);
// Use in a widget
FluttyBuilder<int>(
notifier: counter,
builder: (context, value) => Text('Count: $value'),
);
// Update
counter.update(42);
counter.modify((current) => current + 1);
API Documentation #
See the API docs for full documentation.