Tarsier LabsTarsier Labs
🐡
Home
Categories
Tags
Bookmarks
About
Back to tags

StateManagement

0 articles

UserStore / WalletStore / ConfigStore: Hydrated Trio β€” Flutter Persistent State Management

UserStore / WalletStore / ConfigStore: Hydrated Trio β€” Flutter Persistent State Management

Analyzing three core Stores based on HydratedStateNotifier β€” UserStore manages user profiles and local DB initialization, WalletStore caches balances, ConfigStore caches dynamic configurations, along with the parallel refresh strategy after login.

00
Multi-platform
HydratedStateNotifier: Abstract State Persistence in Flutter

HydratedStateNotifier: Abstract State Persistence in Flutter

Exploring the HydratedStateNotifier abstract base class, which automatically persists and restores state through a configurable storage backend, solving the problem of state like theme preferences, language, and onboarding pages surviving app restarts.

00
Multi-platform
AuthNotifier + TokenStorage: Flutter Authentication State Machine

AuthNotifier + TokenStorage: Flutter Authentication State Machine

Implement a robust authentication state machine in Flutter using AuthNotifier and TokenStorage, covering login, token refresh, secure storage, Provider integration, and security best practices.

00
Multi-platform
AppBootstrap: Data Barrier + 5-Way Parallel Initialization

AppBootstrap: Data Barrier + 5-Way Parallel Initialization

A two-phase initialization strategy that uses a data barrier to block UI rendering until all key preconditions are met, completely solving the common "logged-out flicker" problem.

00
Multi-platform