0 articles
A social media and e-commerce integrated super app built with Flutter + Riverpod + GoRouter + Dio, covering core features such as IM, LuckyDraw, KYC, e-commerce, and Wallet
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.
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.
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.