Releases: maheshj01/searchfield
v1.3.2
v1.3.1
Full Changelog: v1.3.0...v1.3.1
v1.3.0
Full Changelog: v1.2.9...v1.3.0
v1.2.9
What's Changed
- fix: add value parameter to searchfield list item by @maheshj01 in #230
- add new parameter keepSearchOnSelection by @maheshj01 in #229
Full Changelog: v1.2.8...v1.2.9
v1.2.8
Full Changelog: v1.2.7...v1.2.8
v1.2.7
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
What's Changed
- Resolve index out of bound error by @muhammad-hassan-shakeel in #206
New Contributors
- @muhammad-hassan-shakeel made their first contribution in #206
Full Changelog: v1.2.2...v1.2.4
v1.2.0
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 useFocusNode
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
Full Changelog: v1.1.5...v1.1.6
v1.1.5
Full Changelog: v1.1.4...v1.1.5
-
- remove custom assertions for
SearchInputDecoration
properties
- remove custom assertions for