File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -72,25 +72,16 @@ class _MyHomePageState extends State<MyHomePage> {
72
72
),
73
73
),
74
74
FormBuilderSearchableDropdown <String >(
75
- popupProps: PopupProps .dialog (
76
- showSelectedItems: true ,
77
- showSearchBox: true ,
78
- isFilterOnline: true ,
79
- ),
80
- autoValidateMode: AutovalidateMode .onUserInteraction,
75
+ popupProps: const PopupProps .menu (showSearchBox: true ),
81
76
dropdownSearchDecoration: const InputDecoration (
82
77
hintText: 'Search' ,
83
78
labelText: 'Search' ,
84
79
),
85
80
name: 'searchable_dropdown_offline' ,
86
81
items: allCountries,
87
- clearButtonProps: ClearButtonProps (icon: Icon (Icons .close)),
88
82
onChanged: _onChanged,
89
83
decoration: const InputDecoration (
90
84
labelText: 'Searchable Dropdown Offline' ),
91
- validator: FormBuilderValidators .compose ([
92
- FormBuilderValidators .required (),
93
- ]),
94
85
filterFn: (country, filter) =>
95
86
country.toLowerCase ().contains (filter.toLowerCase ()),
96
87
),
You can’t perform that action at this time.
0 commit comments