EXCEPTION CAUGHT BY FLUTTER FRAMEWORK

Уже ничего здесь не размещаю кроме своих любимых ошибок во Flutter. Итак встречаем новую)))

flutter: Caught Framework error
flutter: ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════
flutter: The following assertion was thrown:
flutter: This widget has been unmounted, so the State no longer has a context (and should be considered
flutter: defunct).
flutter: Consider canceling any active work during "dispose" or using the "mounted" getter to determine if
flutter: the State is still active.
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════

Решается простым оборачиванием вашего говна, которое вызываясь падает в эксепшен в if (mounted) {}

Leave a Comment