maheshj01 / searchfield

A highly customizable simple and easy to use flutter Widget to add a searchfield to your Flutter Application.This Widget allows you to search and select from list of suggestions.
MIT License
84 stars 64 forks source link

Assertion failed: flutter/packages/flutter/lib/src/widgets/overlay.dart:168:12 _overlay != null is not true #124

Closed murvkins closed 8 months ago

murvkins commented 8 months ago

Describe the bug I am receiving the error: Assertion failed: file:///D:/flutter/packages/flutter/lib/src/widgets/overlay.dart:168:12 _overlay != null is not true It appears to be this line in your package: packages/searchfield/src/searchfield.dart 391:24

The solution appears to be to add: _overlayEntry = null just after line 391 per this SO: https://stackoverflow.com/questions/51443904/packageflutter-src-widgets-overlay-dart-failed-assertion-line-133-pos-12

maheshj01 commented 8 months ago

Hi @murvkins, Thanks for filing the issue. Is the issue. Is the issue with latest version of the package v0.9.7? if Yes, Can you please share a minimal and complete code sample that I can run to debug the issue?

murvkins commented 8 months ago

I apologize. I had only updated the Searchfield package to 0.9.7 from 0.8.7 at the time of writing. After performing a flutter clean, updating the rest of my packages and my project, the issue is resolved.

maheshj01 commented 8 months ago

@murvkins No problem at all, we all have been there. I'm glad to hear it is working fine. If you encounter any issues or have any questions, please do not hesitate to file a issue or leave a comment.

Best, Mahesh