Skip to content

Commit 5de8b9c

Browse files
feat: revert example widgets changes
1 parent b5100e3 commit 5de8b9c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

example/lib/main.dart

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,16 @@ class _MyHomePageState extends State<MyHomePage> {
7272
),
7373
),
7474
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),
8176
dropdownSearchDecoration: const InputDecoration(
8277
hintText: 'Search',
8378
labelText: 'Search',
8479
),
8580
name: 'searchable_dropdown_offline',
8681
items: allCountries,
87-
clearButtonProps: ClearButtonProps(icon: Icon(Icons.close)),
8882
onChanged: _onChanged,
8983
decoration: const InputDecoration(
9084
labelText: 'Searchable Dropdown Offline'),
91-
validator: FormBuilderValidators.compose([
92-
FormBuilderValidators.required(),
93-
]),
9485
filterFn: (country, filter) =>
9586
country.toLowerCase().contains(filter.toLowerCase()),
9687
),

0 commit comments

Comments
 (0)