How to resolve flutter dropdownButtonFormField dynamic selection checking for dropdownButton's value
问题 I am trying to ask the user to select the type of item in the first dropdown and then select from its corresponding available colours in the second dropdown. However, when after I have selected a colour (i.e. white) and now want to switch to another item that does not have this colour, an error is thrown: "There should be exactly one item with [DropdownButton]'s value: white. \nEither zero or 2 or more [DropdownMenuItem]s were detected with the same value" Please help, I have already tried to