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> |
||
|---|---|---|
| .. | ||
| android | ||
| assets/images | ||
| ios | ||
| lib | ||
| .gitignore | ||
| .metadata | ||
| README.md | ||
| analysis_options.yaml | ||
| pubspec.yaml | ||
README.md
genex_consumer
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.