Skip to content

Getting Started ​

This guide will help you quickly get started with the Jolt reactive state management library.

Installation ​

Install Jolt using the pub add command:

bash
# Install core package
dart pub add jolt

For Flutter projects, it's recommended to install jolt_flutter:

bash
# Recommended: Flutter Widget integration
flutter pub add jolt_flutter

For the Composition API and Setup Widget pattern, install jolt_setup:

bash
# Composition API with automatic resource cleanup
flutter pub add jolt_setup

If using Flutter Hooks, you can install jolt_hooks:

bash
# Optional: flutter_hooks integration
flutter pub add jolt_hooks

If you prefer the Cubit pattern, you can install jolt_surge:

bash
# Optional: Surge pattern (similar to BLoC's Cubit)
flutter pub add jolt_surge

Next Steps ​

Core Concepts ​

  • Check out Signal to learn the basics of signals
  • Read Computed to learn about derived values
  • Explore Effect for handling side effects
  • Learn about Watcher for fine-grained control
  • Study EffectScope for managing effect lifecycles
  • Use Batch to optimize batch update performance
  • Control Track for fine-grained reactive dependency management
  • Check out Extensions for convenient conversion methods

Flutter Integration ​

Hooks ​

Surge Pattern ​

Advanced Features ​

Development Tools ​

  • Use Jolt Lint for code transformation assists and rule checking

Released under the MIT License