Skip to content

Commit 8675be8

Browse files
committed
Change default mode for SearchableDropdown from Dialog to Menu
1 parent 68373e0 commit 8675be8

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![Buy me a coffee](https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png)](https://buymeacoff.ee/wb5M9y2Sz)
22
<a href="https://www.patreon.com/danvick"><img height=35 src="https://images.milled.com/2020-01-19/Gpcdn365K2wKyBNN/7kgewOM81ULv.png"/></a>
3+
<script data-name="BMC-Widget" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="wb5M9y2Sz" data-description="Support me on Buy me a coffee!" data-message="Thank you for visiting. You can now buy me a coffee!" data-color="#FFDD00" data-position="Right" data-x_margin="18" data-y_margin="18"></script>
34
# Flutter FormBuilder - flutter_form_builder
45

56
This package helps in creation of data collection forms in Flutter by removing the boilerplate needed to build a form, validate fields, react to changes,

example/lib/sources/complete_form.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class CompleteFormState extends State<CompleteForm> {
4747
name: 'searchable_dropdown',
4848
items: allCountries,
4949
onChanged: _onChanged,
50-
enabled: false,
5150
),
5251
FormBuilderLocationField(
5352
name: 'location',

lib/src/fields/form_builder_searchable_dropdown.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class FormBuilderSearchableDropdown<T> extends FormBuilderField<T> {
116116
FocusNode focusNode,
117117
@required this.items,
118118
this.autoValidate = false,
119-
this.mode = dropdown_search.Mode.DIALOG,
119+
this.mode = dropdown_search.Mode.MENU,
120120
this.hint,
121121
this.isFilteredOnline = false,
122122
this.popupTitle,

0 commit comments

Comments
 (0)