FLUTTER ECOSYSTEM

hydrated_triple

A mixin which automatically persists and restores store state.

Latest version
1.0.0
30-day downloads
252
Likes
0
Pub points
145

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

HydratedTriple is a Flutter/Dart package that simplifies state management by automatically persisting and restoring store state across app restarts. Built on top of the Triple pattern, it integrates seamlessly with Riverpod or Provider, enabling developers to maintain user data like preferences, login status, or form inputs without manual serialization. The mixin handles saving state to local storage (e.g., SharedPreferences) and rehydrating it when the app launches, reducing boilerplate and improving user experience. It’s ideal for apps requiring reliable state persistence with minimal setup.

Use cases
  • Persisting user preferences
  • Restoring login state after restart
  • Saving form data temporarily
  • Maintaining app settings across sessions
  • Handling offline-first scenarios
Key features
  • Automatic state persistence
  • Seamless integration with Riverpod/Provider
  • Supports multiple platforms
  • Minimal boilerplate
  • Built-in serialization
  • Cross-platform compatibility
Suitable for
  • Apps needing persistent state
  • Developers using Triple pattern
  • Projects with offline functionality
  • Teams prioritizing developer productivity
  • State management with minimal code
Considerations
  • Requires proper serialization of state objects
  • May increase app startup time slightly
  • Not suitable for large or frequently changing state
  • Limited to simple state structures unless custom logic added
  • Depends on underlying state management solution
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add hydrated_triple

Categories

Source repository

Related projects

No data available yet.