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+
15## 3.0.0-beta.21
26
37- 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> {
10171017 error: effectiveDecoration.error,
10181018 errorText:
10191019 field.errorText ?? effectiveDecoration.errorText,
1020+ errorStyle: effectiveDecoration.errorStyle,
10201021 //helper: effectiveDecoration.helper,
10211022 helperText: effectiveDecoration.helperText,
10221023 ),
@@ -1057,6 +1058,7 @@ class DropdownButtonFormField2<T> extends FormField<T> {
10571058 .updateSurroundingElements (
10581059 error: null ,
10591060 errorText: null ,
1061+ errorStyle: null ,
10601062 //helper: null,
10611063 helperText: null ,
10621064 )
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ extension _InputDecorationExtension on InputDecoration {
4040 InputDecoration updateSurroundingElements ({
4141 required Widget ? error,
4242 required String ? errorText,
43+ required TextStyle ? errorStyle,
4344 // TODO(Ahmed): Add this when it's supported by the min version of the package [Flutter>=3.22.0].
45+ // required Widget? helper,
4446 required String ? helperText,
4547 }) {
4648 return InputDecoration (
You can’t perform that action at this time.
0 commit comments