Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/dropdown_button2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Add `forceErrorText` support for DropdownButtonFormField2 [Flutter core].
- Add ARIA menu roles to menu-related widgets for accessibility [Flutter core].
- Document `DropdownButtonFormField2.onChanged` ordering relative to `Form.onChanged` [Flutter core].
- Add assert for mutually exclusive `errorBuilder` and `errorText` [Flutter core].
- Add `anchoredMinHeight` to keep the menu anchored to the button and shrink to fit when possible, closes #429.
- Re-lay out dropdown menu on ancestor scroll.
- Add `barrierBlocksInteraction` to allow interaction with underlying widgets while the dropdown menu is open.
Expand Down
4 changes: 4 additions & 0 deletions packages/dropdown_button2/lib/src/dropdown_button2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,10 @@ class DropdownButtonFormField2<T> extends FormField<T> {
valueListenable == null || multiValueListenable == null,
'Only one of valueListenable or multiValueListenable can be used.',
),
assert(
errorBuilder == null || decoration?.errorText == null,
'Declaring both errorBuilder and decoration.errorText is not supported.',
),
decoration = decoration ?? const InputDecoration(),
super(
initialValue: valueListenable != null
Expand Down
Loading