New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FocusScopeNode Error #30
Comments
How did you solve this? |
FocusScope.of(context).requestFocus(FocusNode()); |
Where did you call this though? Does the issue not relate to the flash snackbars? |
For those who are trying to add a text field into Flash, please do not use persistent: true, in this case Flash it is not using navigator overlay and during the typing into the text field didUpdateWidget is trying to make magic with FocusNodeScopes or Navigator FocusScopeNode and Flash's state FocusScopeNode |
FocusScopeNode FocusScopeNode#ea86b(_FlashState Focus Scope [PRIMARY FOCUS])(context: FocusScope, PRIMARY FOCUS) must be a child of FocusScopeNode#6ff27(Navigator Scope)(context: FocusScope, focusedChildren: [FocusScopeNode#bac68(_ModalScopeState Focus Scope)]) to set it as first focus.
'package:flutter/src/widgets/focus_manager.dart':
Failed assertion: line 1272 pos 12: 'scope.ancestors.contains(this)'
The text was updated successfully, but these errors were encountered: