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

Issue with deactivating the view #56

Open
piotrjablczynski opened this issue Oct 4, 2024 · 0 comments
Open

Issue with deactivating the view #56

piotrjablczynski opened this issue Oct 4, 2024 · 0 comments

Comments

@piotrjablczynski
Copy link

I am using version 1.3.2.
There is major issue with this version that made MapLocationPicker not usable at all, every time I deactivate the MapLocationPicker I get the exception:
FlutterError (A MyTextEditingController was used after being disposed.
Once you have called dispose() on a MyTextEditingController, it can no longer be used.)

It doesn't matter if I put my own searchController:_myController or not.
The issue happens because searchController disposing is called twice:

  • Once by FormBuilderTypeAhead:
    @OverRide
    void dispose() {
    // Dispose the _typeAheadController when initState created it
    super.dispose();
    _typeAheadController.dispose();
    }

  • And then by PlacesAutocomplete:
    @OverRide
    void dispose() {
    _controller.dispose();
    _debounce.dispose();
    super.dispose();
    }

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

1 participant