Каждый раз, когда я пытаюсь нажать кнопку «Назад» моего телефона, на пульте появляется это исключениеЕсли я просто попытаюсь POP со встроенной кнопки, это не произойдет. Чем может быть вызвано? Я не очень понимаю.
Исключение продолжается до n ° 400 и затем останавливается и в конечном итоге возвращается к предыдущему экрану
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown while dispatching notifications for FocusManager:
Looking up a deactivated widget's ancestor is unsafe.
At this point the state of the widget's element tree is no longer stable.
To safely refer to a widget's ancestor in its dispose() method, save a reference to the ancestor by calling inheritFromWidgetOfExactType() in the widget's didChangeDependencies() method.
When the exception was thrown, this was the stack:
#0 Element._debugCheckStateIsActiveForAncestorLookup.<anonymous closure> (package:flutter/src/widgets/framework.dart:3406:9)
#1 Element._debugCheckStateIsActiveForAncestorLookup (package:flutter/src/widgets/framework.dart:3420:6)
#2 Element.inheritFromWidgetOfExactType (package:flutter/src/widgets/framework.dart:3435:12)
#3 Focus.of (package:flutter/src/widgets/focus_scope.dart:266:41)
#4 _InkResponseState._handleFocusUpdate (package:flutter/src/material/ink_well.dart:629:39)
...
The FocusManager sending notification was: FocusManager#2a4e1
primaryFocus: FocusScopeNode#e5462
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ (2) Exception caught by widgets library ═══════════════════════════════════════════════════
Looking up a deactivated widget's ancestor is unsafe.
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ (3) Exception caught by widgets library ═══════════════════════════════════════════════════
Looking up a deactivated widget's ancestor is unsafe.
═════════════════════════════════════════════════════════