AbdulRahmanAlHamali / flutter_typeahead

A TypeAhead widget for Flutter, where you can show suggestions to users as they type
BSD 2-Clause "Simplified" License
831 stars 349 forks source link

Navigating back to a typeaheadfield with a swipe gesture makes the field lose focus and become unresponsive #589

Closed jonmountjoy closed 6 months ago

jonmountjoy commented 6 months ago

Steps to reproduce

See this repo for an example, or the video.

If I click on a suggestion, and navigate to a new page, and use the back arrow on the page, all is well.

If I click on a suggestion, and navigate to a new page, and swipe back instead, then I cannot use the typeahead field at all. It cannot get focus, even if I click on it.

Expected results

I expect the field to be focusable no matter how I get back to the page.

Actual results

The field becomes totally unresponsive. Only a restart of the app fixes it.

Package Version

5.2.0

Running on Flutter 3.22.0

Platform

iOS

Code sample

See repo

Logs

No response

Screenshots or Video

Screenshots / Video demonstration https://github.com/AbdulRahmanAlHamali/flutter_typeahead/assets/545244/61737e61-8ab3-4dcb-8aac-aa89bcf717f2
jonmountjoy commented 6 months ago

This appears to be a new bug in flutter, so closing here.
See https://github.com/flutter/flutter/issues/148573