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

Overlay disappears #83

Closed Ronan-V closed 1 year ago

Ronan-V commented 1 year ago

First I'd like to thank you for your beautiful work on this package, you are a great help for many people like me.

Here is the bug i'm facing. Following 0.8.1, the suggestions overlay appears quickly before disappearing when the keyboard is shown and resizeToAvoidBottomSheet is false.

Here is a simple page code to reproduce it:


class MainPage extends StatelessWidget {
  const MainPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        resizeToAvoidBottomInset: false,
        body: SearchField(
            suggestions: ['ABC', 'DE', 'DFHK']
                .map<SearchFieldListItem>(
                    (e) => SearchFieldListItem(e, child: Text(e)))
                .toList()));
  }
}
maheshj01 commented 1 year ago

Hello @Ronan-V Thanks for reporting the bug will try to fix it asap.

maheshj01 commented 1 year ago

@Ronan-V This has been fixed in v0.8.3. Thank you for using this package and helping improve it with your report.

savdev-ua commented 1 year ago

@Ronan-V This has been fixed in v0.8.3. Thank you for using this package and helping improve it with your report.

Hi @Ronan-V , How to fix error on scroll the page with overlay? When suggestions are shown, if you scroll page to another direction than suggestions will jump in another place. In previous versions there was a boolean called 'hasOverlay : false' that solved this issue. How to fix it now?

maheshj01 commented 1 year ago

Hey @savdev-ua, I am not sure I understand your issue completely, would you please file a separate issue with more details and a sample code (if applicable)? Btw Overlays are enabled by default in the latest release.