Skip to content
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

FormBuilderSearchableDropdown error when inputing text #777

Closed
iulian0512 opened this issue Apr 20, 2021 · 2 comments
Closed

FormBuilderSearchableDropdown error when inputing text #777

iulian0512 opened this issue Apr 20, 2021 · 2 comments

Comments

@iulian0512
Copy link

iulian0512 commented Apr 20, 2021

form_builder_crash

No changes were made to the example code pulled from the master branch.
I am running on flutter 2.0.3
LOG:

I/flutter ( 9745): Italy

════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building Builder(dirty, dependencies: [MediaQuery]):
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 dependOnInheritedWidgetOfExactType() in the widget's didChangeDependencies() method.

The relevant error-causing widget was
MaterialApp
lib\main.dart:13
When the exception was thrown, this was the stack
#0 Element._debugCheckStateIsActiveForAncestorLookup.
package:flutter/…/widgets/framework.dart:3864
#1 Element._debugCheckStateIsActiveForAncestorLookup
package:flutter/…/widgets/framework.dart:3878
#2 Element.visitAncestorElements
package:flutter/…/widgets/framework.dart:3964
#3 InheritedTheme.capture
package:flutter/…/widgets/inherited_theme.dart:158
#4 InheritedTheme.captureAll
package:flutter/…/widgets/inherited_theme.dart:126
...
═══════════════════════════════════════════════════════════════════════════════

@iulian0512 iulian0512 changed the title FormBuilderSearchableDropdown crash when inputing text FormBuilderSearchableDropdown error when inputing text Apr 20, 2021
@iulian0512
Copy link
Author

i pulled the new version and turns out i had an old version.

@nicks258
Copy link
Contributor

nicks258 commented Feb 20, 2022

Facing the same issue. Any fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants