i want to clear dropdown field after chosing it, i don’t seem to find controller
or similar.
i am using animated custom dropdown package https://pub.dev/packages/animated_custom_dropdown
Container(
height: 60,
decoration: BoxDecoration(
border: Border.all(
color: const Color.fromRGBO(238, 240, 243, 1),
),
borderRadius: BorderRadius.circular(10)),
child: CustomDropdown(
hideSelectedFieldWhenExpanded: true,
hintText: 'Category',
decoration: CustomDropdownDecoration(
hintStyle: GoogleFonts.poppins(
color: Colors.black,
)),
items: categories,
onChanged: (value) {
print(value);
},
),
),
const SizedBox(height: 20),
Container(
height: 60,
decoration: BoxDecoration(
border: Border.all(
color: const Color.fromRGBO(238, 240, 243, 1),
),
borderRadius: BorderRadius.circular(10)),
child: Center(
child: CustomDropdown.multiSelect(
hintText: 'Sub Category',
items: subCategories,
decoration: CustomDropdownDecoration(
hintStyle: GoogleFonts.poppins(
color: Colors.black,
)),
onListChanged: (value) {
print(value);
},
)),
),
how can i clear selection after selecting multiple sub categories.