79143658

Date: 2024-10-31 06:21:06
Score: 0.5
Natty:
Report link

The issue is DropdownMenu was expecting an Icon not IconButton.

trailingIcon: IconButton(
  icon: const Icon(Icons.clear),
  onPressed: () {
    controller.clear();
  },
),

Can be replaced with

trailingIcon: InkWell(
  child: const Icon(Icons.clear),
  onTap: () {
    controller.clear();
  },
),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PurplePolyhedron