FLUTTER ECOSYSTEM

hydrated

An automatically persisted BehaviorSubject with simple hydration for Flutter. Intended to be used with the BLoC pattern.

Latest version
2.1.0
30-day downloads
55
Likes
29
Pub points
130

Package Overview

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

Overview

Hydrated is a Flutter package that provides an automatically persisted BehaviorSubject, enabling state persistence across app restarts. Designed for use with the BLoC pattern, it simplifies state management by automatically saving and restoring state to local storage. The package ensures data resilience without requiring manual serialization or storage logic, making it ideal for maintaining user preferences, session data, or cached information. It supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases
  • Persisting user preferences
  • Caching app state
  • Maintaining session data
  • Restoring UI state after restart
  • Handling offline-first scenarios
Key features
  • Automatic state persistence
  • Built-in serialization
  • Seamless BLoC integration
  • Cross-platform support
  • Minimal boilerplate
Suitable for
  • BLoC-based state management
  • Apps needing offline data retention
  • Developers seeking simple persistence
  • Stateful apps with minimal setup
  • Projects requiring reliable data recovery
Considerations
  • Requires proper serialization of state objects
  • May increase initial load time due to disk I/O
  • Not suitable for large datasets
  • Limited to simple state types
  • Depends on platform-specific storage mechanisms
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add hydrated

Categories

Source repository

Related projects

No data available yet.