wala_plus_with_dialog_removal
FaizHashmi 4 weeks ago
parent ae816a1f8f
commit fa1cbf866b

@ -523,11 +523,11 @@ class _DashboardScreenForDependetState extends State<DashboardScreenForDependet>
valueListenable: _searchController, valueListenable: _searchController,
builder: (BuildContext context, TextEditingValue value, Widget? child) { builder: (BuildContext context, TextEditingValue value, Widget? child) {
if (value.text.isEmpty) return const SizedBox.shrink(); if (value.text.isEmpty) return const SizedBox.shrink();
return IconButton( return InkWell(
icon: const Icon(Icons.clear, size: 18, color: Color(0xFFACAFB1)), child: const Icon(Icons.clear, size: 18, color: Color(0xFF848486)),
padding: EdgeInsets.zero, // padding: EdgeInsets.zero,
constraints: const BoxConstraints(), // constraints: const BoxConstraints(),
onPressed: () { onTap: () {
_searchController.clear(); _searchController.clear();
_onSearchChanged(""); _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 // 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 // icon must never be forced taller than the TextField's own natural height or it
// overflows the available space. // 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), style: const TextStyle(color: Color(0xFF2A333C), fontSize: 14, fontWeight: FontWeight.w400),
), ),

Loading…
Cancel
Save