Flutter dropdownbutton raises exception. I used a ConstrainedBox to set a maxHeight but then it still overflowed to the right by infinity. I had to set isExpanded: true and then wrap the ConstrainedBox inside of Row -> Expanded.
constraints: const BoxConstraints(maxHeight: 48.0),
isExpanded: true, ...
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.