gcx/frontend/genex-mobile/lib/core
hailin 192bc476c4 fix(mobile): move _startDownload to didChangeDependencies to avoid initState context crash
context.t() (Localizations) cannot be called during initState() — inherited
widgets are not yet mounted. When download fails instantly (e.g. no network),
setState with context.t() inside _startDownload fired synchronously within
initState, causing:
  dependOnInheritedWidgetOfExactType called before initState() completed

Fix: add _downloadStarted guard flag; call _startDownload() from
didChangeDependencies() instead of initState(), where context is fully ready.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 09:57:38 -08:00
..
error feat(genex-mobile): 重构为 Clean Architecture + Riverpod 2026-03-04 20:12:50 -08:00
network feat(genex-mobile): Token 持久化 — 登录状态跨重启保持 2026-03-04 02:01:27 -08:00
providers fix: 修复上传版本500错误 + 优化App冷启动通知请求 2026-03-06 08:48:09 -08:00
push feat: 全平台API对齐 — 4个前端应用55+页面接入真实后端API 2026-02-22 22:53:07 -08:00
services feat(mobile/telemetry): add comprehensive event tracking for DAU, real-time presence & funnels 2026-03-07 09:39:48 -08:00
storage feat(genex-mobile): Token 持久化 — 登录状态跨重启保持 2026-03-04 02:01:27 -08:00
telemetry feat(mobile/telemetry): collect real network type via connectivity_plus 2026-03-07 09:43:04 -08:00
updater fix(mobile): move _startDownload to didChangeDependencies to avoid initState context crash 2026-03-07 09:57:38 -08:00
usecases feat(genex-mobile): 重构为 Clean Architecture + Riverpod 2026-03-04 20:12:50 -08:00