Skip to content

Commit

Permalink
fix: #177
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Sep 26, 2024
1 parent 9baba5c commit 5142933
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### [1.1.6] - September 25, 2024
- Fix: new properties were missing in CopyWith Constructor [Issue: 177 comment](https://github.com/maheshj01/searchfield/issues/177#issuecomment-2376401417)

#### [1.1.5] - September 25, 2024

- remove custom assertions for `SearchInputDecoration` properties
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [searchfield: ^1.1.5](https://pub.dev/packages/searchfield)
<!-- # [searchfield: ^1.1.5](https://pub.dev/packages/searchfield) -->

<a href="https://github.com/maheshj01/searchfield" rel="noopener" target="_blank"><img src="https://img.shields.io/badge/platform-flutter-ff69b4.svg" alt="Flutter Platform Badge"></a>
<a href="https://pub.dev/packages/searchfield"><img src="https://img.shields.io/pub/v/searchfield.svg" alt="Pub"></a>
Expand Down
16 changes: 15 additions & 1 deletion lib/src/input_decoration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class SearchInputDecoration extends InputDecoration {
super.errorStyle,
super.suffixIconConstraints,
});

@override
SearchInputDecoration copyWith({
Key? key,
Expand Down Expand Up @@ -191,6 +191,20 @@ class SearchInputDecoration extends InputDecoration {
String? suffixText,
}) {
return SearchInputDecoration(
cursorColor: cursorColor ?? this.cursorColor,
textCapitalization: textCapitalization ?? this.textCapitalization,
searchStyle: searchStyle ?? this.searchStyle,
prefixIconConstraints:
prefixIconConstraints ?? this.prefixIconConstraints,
suffixIconConstraints:
suffixIconConstraints ?? this.suffixIconConstraints,
hintMaxLines: hintMaxLines ?? this.hintMaxLines,
floatingLabelStyle: floatingLabelStyle ?? this.floatingLabelStyle,
errorText: errorText ?? this.errorText,
error: error ?? this.error,
hintTextDirection: hintTextDirection ?? this.hintTextDirection,
hintFadeDuration: hintFadeDuration ?? this.hintFadeDuration,
helper: helper ?? this.helper,
cursorErrorColor: cursorErrorColor ?? this.cursorErrorColor,
cursorHeight: cursorHeight ?? this.cursorHeight,
cursorWidth: cursorWidth ?? this.cursorWidth,
Expand Down

0 comments on commit 5142933

Please sign in to comment.