- Fix: Issue: #195 Add maintain Height property to SearchInputDecoration Note: To use Searchfield 1.2.1 you would need flutter 3.27.0 or greater
- [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! 🦃
- [regression] Fix: Keyboard navigation does not work Issue: 183
- Add
contextmenubuilder
property
- Refactor: Overlay condition too strict Issue: 182
- Fix: new properties were missing in CopyWith Constructor Issue: 177 comment
- remove custom assertions for
SearchInputDecoration
properties
- Add new properties to
SearchInputDecoration
:prefixIconConstraints
,hintMaxLines
,floatingLabelStyle
,errorText
,error
,hintTextDirection
,hintFadeDuration
,helper
,suffixIconConstraints
- Fix SearchInputDecoration does not take any values Issue #176
- add a
SearchInputDecoration.copyWith
constructor Issue #175 - Fix Issue #174 Exception: RangeError (index): Index out of range: index must not be negative: -1
- Fix Issue #165 Trigger onSubmit when a option is not selected.
- Adds following properties to
SearchInputDecoration
:suffix
,label
,suffixIconColor
,prefix
,prefixIconColor
,prefixIcon
andsuffixIcon
; - Fix Issue #166: select suggestion with keyboard throws null error
- Fix Issue: 168: update selected item when the suggestions change
- Adds new properties to style the search input using
SearchInputDecoration
:cursorColor
,cursorWidth
,cursorHeight
,keyboardAppearance
,cursorRadius
,cursorOpacityAnimates
- [BREAKING] Input deocration properties are now part of
SearchInputDecoration
following are the properties moved toSearchInputDecoration
:textCapitalization
,searchStyle
Before
SearchField(
textCapitalization: TextCapitalization.words,
style: TextStyle(...)
...
)
After
SearchField(
searchInputDecoration: SearchInputDecoration(
textCapitalization: TextCapitalization.words,
style: TextStyle(...)
...
)
...
),
- renamed
dynamicHeightItem
todynamicHeight
- Fix exception on scroll (debug) Issue #162
- Fixed Regression: Broke basic functionality to search hotfix #161
- Fix: Scroll to selected Sugggestion Issue Fix: Issue #155
- Fix: maxSuggestionInViewport did not show correct number of suggestions.
- Add Support for dynamic height of suggestionItem Issue #67
- Option was not being selected on search Issue #136
- Add Max Length and Option to disable counter for TextFormField #Issue 145
- Fix: error when dealing with multiple Overlays Issue #143
- Arrow keys now properly scroll to the focused suggestion
- Fix: Scrollbar tap hides the suggestions Issue #137
- Expose additional properties of
RawScrollbar
toScrollbarDecoration
- Fix: onSuggestionTap returns empty searchKey usng keyboard Issue #138
- emptyWidget was incorrectly displayed Fix Issue #132
- adds animationDuration to customize the list animation duration
- Scroll to bottom and top of list using alt+down and alt+up keys
- ListView is always kept in state to maintain scrolloffset Issue #122
- Shift+Tab should respect sequence of SearchField in a form with SuggestionState.hidden Issue #125
- Incorrect search result passed to onSubmit Issue #126
- Add
elevation
andshadowColor
property to SuggestionDecoration class fixes Issue #110 - Customize width of suggestions using
SuggestionDecoration.width
property - Initial Value should be selected by default Issue #127
- Add
textAlign
property to SearchField Completes PR #126(
- Expose
onScroll
event listener Issue #118 - Add
showEmpty
parameter to hide/show emptyWidget
- Add
hoverColor
andselectionColor
property to SuggestionDecoration. Issue #112
- Add keyboard support for suggestions Issue #7
- [BREAKING] Remove deprecated property
comparator
, useonSearchTextChanged
instead
- Fix SuggestionDirection broken
- Update Suggestion dimensions on Window resize Issue #84
- Adds a enum
SuggestionDirection.flexible
to position the suggestions based on the available space. Issue #56
- Expose onTap callback to get the tap event on the searchfield
- Add autoValidateMode property to SearchField
- Clip Suggsestions within Material, Fixes issue #44
- add
onTapOutside
callback to SearchField Issue #94 - add
autofocus
property to SearchField Issue #105
- Minor Fix in suggestions total height calculation. #PR 85
- Remove default scrollbar from listview
- Adds
scrollbarDecoration
property to customize the scrollbar Issue #99 - [BREAKING] Removes
scrollbarAlwaysVisible
property, instead usescrollbarDecoration.thumbVisibility
to customize the scrollbar.
- Addresses Issue #92: Add
onSaved
callback to SearchField - Addresses Issue #90 Update Docs to clarify Alignment of suggestions
- Fix Regressed Issue: #83
- Fix static analysis issue
- Fixed: Overlay was not updated when the dependency changed.
- Fix: Issue #81 adds padding property to
SuggestionDecoration
.
- Fix: Issue #78 Adds
onSearchTextChanged
callback to get the search text on every change. - Deprecate
comparator
property, useonSearchTextChanged
instead.
- Fix Issue #77 Add TextCapitalization property to SearchField.
- Fix Issue: 76 Overlay not getting closed on Route pop.
- Add 'readOnly' property to disable editing
- [BREAKING] Issue #58: Removes
hasOverlay
property, now suggestions are always shown as an overlay - Fixes: SearchField Cannot be wrapped with Center Issue 57
-
Hot Fix: #70 OnSuggestionTap broke in flutter 3.7 for non mobile platforms see: flutter/flutter#119390
-
[BREAKING] Adds Scrollbar for suggestions (Requires flutter stable 3.7 or greater.)
- Add
comparator
property to filter out the suggestions with a custom logic. - Fixes #69
- Add
enabled
property see #65
- Add
suggestionDirection
property to position the suggestions.
- Fixes #43
- Add
offset
property to position the suggestions.
- Add
suggestionStyle
to style default suggestions.
- Fix widget not mounted error on Deactivate
- Fixes issue #39
- Add
autoCorrect
andinputFormatter
property - Fix suggestionState for
hasOverlay:false
- Fixes runtime warning in flutter 3 Issue #29
- Fixes Issue #25
- Fixes issue #20
- renamed property
onTap
toonSuggestionTap
- Adds
focusNode
andonSubmit
parameters to SearchField
- Add support for empty widget
- Add support for changing inputType
- update version in readme
- pass generic object to
SearchfieldListItem
- add custom widget for Suggestions using
SearchFieldListItem
- removes
suggestionStyle
property - minor fixes
- adds
suggestionAction
to change focus on suggestion tap - suggestions now always show on
SuggestionState.enabled
- adds
searchInputAction
property to focus to next input
- renamed property to
SuggestionType
toSuggestionState
- Adds
SuggestionType
enum to show/hide suggestion on focus - Update example
- Add overlay example
- Update readme
- Updated docs
- Adds support for overlays
- suggestions are lazily loaded on demand
- Adds animation to suggestions
- Fix a small bug
- Adds support for validator to add custom validations
- Support for controller to interact with the SearchField
- update Docs
- support to change the height of each suggestionItem.
- Can now define max number of suggestions visible in the viewport.
- Customizable Search Input Decoration like the built in textfield.
- decorate the Suggestions List with color or gradient.
- Initial Release.
- supports sound null safety
- docs: minor documentation fixes and improvements