Documentation Coming Soon
We're working hard to create comprehensive documentation for Zenstate. Check back soon for detailed guides, API references, and examples.
Getting Started
Installation guides and basic setup instructions to get you up and running quickly.
API Reference
Comprehensive API documentation with examples and use cases for all features.
Best Practices
Learn the recommended patterns and approaches for efficient state management.
Preview: Using Zenstate
// Sample code - Full documentation coming soon
final counterAtom = Atom<int>(0);
// Update state with a clean API
void increment() => counterAtom.value++;
// Use in widgets with minimal boilerplate
class CounterWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
// Watch the atom and rebuild when it changes
final count = counterAtom.watch(context);
return Column(
children: [
Text('Count: $count', style: Theme.of(context).textTheme.headline4),
ElevatedButton(
onPressed: increment,
child: Text('Increment'),
),
],
);
}
}