fixed theme

This commit is contained in:
hannathkadher
2025-02-20 11:36:08 +04:00
parent eafb811d2e
commit 57c5f4752c

View File

@ -89,10 +89,13 @@ class _DialogTextfieldDropdownState extends State<DialogTextfieldDropdown> {
itemBuilder: (context, index) { itemBuilder: (context, index) {
final item = _filteredItems[index]; final item = _filteredItems[index];
return ListTile( return ListTile(
title: Text( title: Text(item,
item, style: Theme.of(context)
style: const TextStyle(color: Colors.black), .textTheme
), .bodyMedium
?.copyWith(
color:
ColorsManager.textPrimaryColor)),
onTap: () { onTap: () {
_controller.text = item; _controller.text = item;
widget.onSelected(item); widget.onSelected(item);
@ -139,7 +142,7 @@ class _DialogTextfieldDropdownState extends State<DialogTextfieldDropdown> {
widget.onSelected(_controller.text); widget.onSelected(_controller.text);
_closeDropdown(); _closeDropdown();
}, },
style: const TextStyle(color: Colors.black), style: Theme.of(context).textTheme.bodyMedium,
decoration: const InputDecoration( decoration: const InputDecoration(
hintText: 'Enter or Select a tag', hintText: 'Enter or Select a tag',
border: InputBorder.none, border: InputBorder.none,