master
FaizHashmi 3 weeks ago
parent ae816a1f8f
commit fa1cbf866b

@ -523,11 +523,11 @@ class _DashboardScreenForDependetState extends State<DashboardScreenForDependet>
valueListenable: _searchController,
builder: (BuildContext context, TextEditingValue value, Widget? child) {
if (value.text.isEmpty) return const SizedBox.shrink();
return IconButton(
icon: const Icon(Icons.clear, size: 18, color: Color(0xFFACAFB1)),
padding: EdgeInsets.zero,
constraints: const BoxConstraints(),
onPressed: () {
return InkWell(
child: const Icon(Icons.clear, size: 18, color: Color(0xFF848486)),
// padding: EdgeInsets.zero,
// constraints: const BoxConstraints(),
onTap: () {
_searchController.clear();
_onSearchChanged("");
},
@ -537,7 +537,7 @@ class _DashboardScreenForDependetState extends State<DashboardScreenForDependet>
// max, not min - this search bar's outer Container is a fixed height (70), so the
// icon must never be forced taller than the TextField's own natural height or it
// overflows the available space.
suffixIconConstraints: const BoxConstraints(maxWidth: 24, maxHeight: 24),
suffixIconConstraints: const BoxConstraints(maxWidth: 24, maxHeight: 28),
),
style: const TextStyle(color: Color(0xFF2A333C), fontSize: 14, fontWeight: FontWeight.w400),
),

Loading…
Cancel
Save