make dropdown searchable
This commit is contained in:
parent
1653840880
commit
d02877b287
1 changed files with 3 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ class _MihDropdownFieldState extends State<MihDropdownField> {
|
||||||
Theme(
|
Theme(
|
||||||
data: Theme.of(context).copyWith(
|
data: Theme.of(context).copyWith(
|
||||||
textSelectionTheme: TextSelectionThemeData(
|
textSelectionTheme: TextSelectionThemeData(
|
||||||
|
cursorColor: theme.primaryColor(),
|
||||||
selectionColor:
|
selectionColor:
|
||||||
theme.primaryColor().withValues(alpha: 0.3),
|
theme.primaryColor().withValues(alpha: 0.3),
|
||||||
selectionHandleColor: theme.primaryColor(),
|
selectionHandleColor: theme.primaryColor(),
|
||||||
|
|
@ -109,6 +110,8 @@ class _MihDropdownFieldState extends State<MihDropdownField> {
|
||||||
enableSearch: widget.enableSearch,
|
enableSearch: widget.enableSearch,
|
||||||
enableFilter: widget.enableSearch,
|
enableFilter: widget.enableSearch,
|
||||||
enabled: widget.editable,
|
enabled: widget.editable,
|
||||||
|
textInputAction: TextInputAction.search,
|
||||||
|
requestFocusOnTap: true,
|
||||||
menuHeight: 400,
|
menuHeight: 400,
|
||||||
expandedInsets: EdgeInsets.zero,
|
expandedInsets: EdgeInsets.zero,
|
||||||
textStyle: TextStyle(
|
textStyle: TextStyle(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue