Block potential bug that can occur during page transitions
This commit is contained in:
parent
663ad161fd
commit
2faa7d7aab
@ -232,7 +232,9 @@ class _CustomFocusBuilderState extends State<_CustomFocusBuilder> {
|
|||||||
|
|
||||||
void _handleFocusChanged() {
|
void _handleFocusChanged() {
|
||||||
widget.onFocusChanged?.call(_focusNode.hasFocus);
|
widget.onFocusChanged?.call(_focusNode.hasFocus);
|
||||||
setState(() {});
|
if (mounted) {
|
||||||
|
setState(() {});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user