mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
fixed theme
This commit is contained in:
@ -88,19 +88,34 @@ class _DialogTextfieldDropdownState extends State<DialogTextfieldDropdown> {
|
|||||||
itemCount: _filteredItems.length,
|
itemCount: _filteredItems.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
final item = _filteredItems[index];
|
final item = _filteredItems[index];
|
||||||
return ListTile(
|
|
||||||
title: Text(item,
|
return Container(
|
||||||
style: Theme.of(context)
|
decoration: const BoxDecoration(
|
||||||
.textTheme
|
border: Border(
|
||||||
.bodyMedium
|
bottom: BorderSide(
|
||||||
?.copyWith(
|
color: ColorsManager.lightGrayBorderColor,
|
||||||
color:
|
width: 1.0,
|
||||||
ColorsManager.textPrimaryColor)),
|
),
|
||||||
onTap: () {
|
),
|
||||||
_controller.text = item;
|
),
|
||||||
widget.onSelected(item);
|
child: ListTile(
|
||||||
_closeDropdown();
|
title: Text(item,
|
||||||
},
|
style: Theme.of(context)
|
||||||
|
.textTheme
|
||||||
|
.bodyMedium
|
||||||
|
?.copyWith(
|
||||||
|
color: ColorsManager
|
||||||
|
.textPrimaryColor)),
|
||||||
|
onTap: () {
|
||||||
|
_controller.text = item;
|
||||||
|
widget.onSelected(item);
|
||||||
|
setState(() {
|
||||||
|
_filteredItems
|
||||||
|
.remove(item); // Remove selected item
|
||||||
|
});
|
||||||
|
_closeDropdown();
|
||||||
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user