File tree Expand file tree Collapse file tree
packages/dropdown_button2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55- Add ` forceErrorText ` support for DropdownButtonFormField2 [ Flutter core] .
66- Add ARIA menu roles to menu-related widgets for accessibility [ Flutter core] .
77- Document ` DropdownButtonFormField2.onChanged ` ordering relative to ` Form.onChanged ` [ Flutter core] .
8+ - Add assert for mutually exclusive ` errorBuilder ` and ` errorText ` [ Flutter core] .
89- Add ` anchoredMinHeight ` to keep the menu anchored to the button and shrink to fit when possible, closes #429 .
910- Re-lay out dropdown menu on ancestor scroll.
1011- Add ` barrierBlocksInteraction ` to allow interaction with underlying widgets while the dropdown menu is open.
Original file line number Diff line number Diff line change @@ -1153,6 +1153,10 @@ class DropdownButtonFormField2<T> extends FormField<T> {
11531153 valueListenable == null || multiValueListenable == null ,
11541154 'Only one of valueListenable or multiValueListenable can be used.' ,
11551155 ),
1156+ assert (
1157+ errorBuilder == null || decoration? .errorText == null ,
1158+ 'Declaring both errorBuilder and decoration.errorText is not supported.' ,
1159+ ),
11561160 decoration = decoration ?? const InputDecoration (),
11571161 super (
11581162 initialValue: valueListenable != null
You can’t perform that action at this time.
0 commit comments