Flutter #flutter #dart
-
[Error] Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe.Flutter/Error 2023. 6. 23. 10:59
E/flutter ( 3423): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe. E/flutter ( 3423): At this point the state of the widget's element tree is no longer stable. 이라는 오류를 직면하게 되는 경우가 있을 것이다. 나 같은 경우는 Future.delayed(Duration(seconds: 2), () { Navigator.of(context).pop(false); }); 버튼을 눌렀을 때 showDialog를 경고창을 띄우고 2초 뒤에 사라지길 원..