chain-studio/lib/pages
flemming-it 0cf3b0ed72
Some checks failed
Security / Security check (push) Failing after 2s
fix(welcome): defer doc-load to didChangeDependencies
_DocReaderSheetState.initState() called _load(), which
synchronously calls Localizations.localeOf(context) before any
await. That triggers dependOnInheritedWidgetOfExactType<
_LocalizationsScope>() in initState(), which Flutter forbids
because InheritedWidget wiring is not finished yet.

Symptom (clicking a doc card in Welcome):
  dependOnInheritedWidgetOfExactType<_LocalizationsScope>()
  or dependOnInheritedElement() was called before
  _DocReaderSheetState.initState() completed.

Fix: defer _load() to didChangeDependencies(), which runs
after initState() and after InheritedWidget hookup. Gate on
_content == null so it runs exactly once per widget lifetime
(didChangeDependencies can also fire on later dependency
changes; we only want the first load).

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
2026-05-23 17:47:23 +02:00
..
approvals.dart feat(studio): operator QoL — flow runnability, audit grouping, batch approvals, welcome celebration (v0.42.0) 2026-05-09 11:24:57 +02:00
audit.dart feat(studio): operator QoL — flow runnability, audit grouping, batch approvals, welcome celebration (v0.42.0) 2026-05-09 11:24:57 +02:00
doctor.dart feat(studio): @-syntax file inputs in flows, copyable doc errors, services-row overflow (v0.40.0) 2026-05-09 02:07:31 +02:00
flows.dart feat(studio): contextual "Add registry token" CTA on install auth wall (v0.46.0) 2026-05-09 19:32:13 +02:00
modules.dart feat(studio): Doctor + Modules localized + sparse-store federation nudge (v0.25.0) 2026-05-08 01:39:42 +02:00
store.dart feat(studio): carousel size lock, store-actionable today stories, HTTPS MCP suggestions in settings (v0.36.0) 2026-05-08 23:53:05 +02:00
welcome.dart fix(welcome): defer doc-load to didChangeDependencies 2026-05-23 17:47:23 +02:00