File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
packages/dropdown_button2 Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## UNRELEASED
2
+
3
+ - Fix errorStyle has no effect for DropdownButtonFormField2, closes #327 .
4
+
1
5
## 3.0.0-beta.21
2
6
3
7
- Fix menu limits when using searchable dropdown with separators, closes #214 .
Original file line number Diff line number Diff line change @@ -1017,6 +1017,7 @@ class DropdownButtonFormField2<T> extends FormField<T> {
1017
1017
error: effectiveDecoration.error,
1018
1018
errorText:
1019
1019
field.errorText ?? effectiveDecoration.errorText,
1020
+ errorStyle: effectiveDecoration.errorStyle,
1020
1021
//helper: effectiveDecoration.helper,
1021
1022
helperText: effectiveDecoration.helperText,
1022
1023
),
@@ -1057,6 +1058,7 @@ class DropdownButtonFormField2<T> extends FormField<T> {
1057
1058
.updateSurroundingElements (
1058
1059
error: null ,
1059
1060
errorText: null ,
1061
+ errorStyle: null ,
1060
1062
//helper: null,
1061
1063
helperText: null ,
1062
1064
)
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ extension _InputDecorationExtension on InputDecoration {
40
40
InputDecoration updateSurroundingElements ({
41
41
required Widget ? error,
42
42
required String ? errorText,
43
+ required TextStyle ? errorStyle,
43
44
// TODO(Ahmed): Add this when it's supported by the min version of the package [Flutter>=3.22.0].
45
+ // required Widget? helper,
44
46
required String ? helperText,
45
47
}) {
46
48
return InputDecoration (
You can’t perform that action at this time.
0 commit comments