Skip to content

Releases: maheshj01/searchfield

v1.3.2

23 May 17:18
Compare
Choose a tag to compare

v1.3.1

16 May 22:30
Compare
Choose a tag to compare

Full Changelog: v1.3.0...v1.3.1

v1.3.0

13 May 16:22
Compare
Choose a tag to compare

Full Changelog: v1.2.9...v1.3.0

v1.2.9

05 May 19:52
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.8...v1.2.9

v1.2.8

04 May 02:24
Compare
Choose a tag to compare

Full Changelog: v1.2.7...v1.2.8

v1.2.7

16 Apr 16:40
Compare
Choose a tag to compare

What's Changed

  • Refactor searchfield dimensions and offset calculation by @maheshj01 in #217
  • Allow onSearchTextChanged to serve Future Issue #215
  • Dynamic height is broken when the suggestion direction is up Issue #216
  • set overlay to null after unmount PR #209

Full Changelog: v1.2.6...v1.2.7

v1.2.4

28 Jan 16:27
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.2.2...v1.2.4

v1.2.0

30 Nov 16:58
Compare
Choose a tag to compare

What's Changed

  • [Breaking]: Handle selected Value on Client Side Issue: #191

Before

The package sets the selectedValue automatically inside the component, which leads to issues when navigating or selecting suggestions

SearchField(
    hint: 'Basic SearchField',
    dynamicHeight: true,
    maxSuggestionBoxHeight: 300,
    initialValue: SearchFieldListItem<String>('ABC'),
    suggestions: dynamicHeightSuggestion
        .map(SearchFieldListItem<String>.new)
        .toList(),
    suggestionState: Suggestion.expand,
),

After

Now the client should handle the selectedValue explicitly in the client code (consumer code) by using the onSuggestionTap callback. This approach simplifies the API and provides more accurate control over the internal state of the package.

var selectedValue = SearchFieldListItem<String>('ABC');

SearchField(
    hint: 'Basic SearchField',
    dynamicHeight: true,
    maxSuggestionBoxHeight: 300,
    // now the selectedValue is handled by the client
    onSuggestionTap: (SearchFieldListItem<String> item) {
        setState(() {
            selectedValue = item;
        });
    },
    selectedValue: selectedValue, // rename initialValue to selectedValue
    suggestions: dynamicHeightSuggestion
        .map(SearchFieldListItem<String>.new)
        .toList(),
    suggestionState: Suggestion.expand,
),
  • Fixes: Issue: #178, Issue: #155

  • Fixes: Issue: #151 Clarifies use of SuggestionAction and now defaults to SuggestionState.unfocus without having to use FocusNode on client side.

  • Fixes: Issue: #190 Keyboard navigation does not work after selecting a suggestion.

Huge thanks to all contributors and supporters.
Happy Thanksgiving! 🦃

  • add contextmenubuilder property by @maheshj01 in #189
  • [regression] Fix: Keyboard navigation does not work Issue: 183
  • [Breaking] Proposal to handle selectedValue on the client side by @maheshj01 in #194

Full Changelog: v1.1.7...v1.2.0

v1.1.6

26 Sep 16:05
Compare
Choose a tag to compare

Full Changelog: v1.1.5...v1.1.6

v1.1.5

25 Sep 17:01
Compare
Choose a tag to compare

Full Changelog: v1.1.4...v1.1.5

    • remove custom assertions for SearchInputDecoration properties