In Flutter, I can build a Dropdown with DropdownMenuItems, like this:
The DropdownMenuItems I add are always wider than the dropdown itself:
How do you
I solved this problem with changing isExpanded to true;
isExpanded
return Container( width: 300.0, child: DropdownButtonHideUnderline( child: DropdownButton( isExpanded: true, value: name, items: listOfDropdownMenuItems, onChanged: onChanged, style: Theme.of(context).textTheme.title, ), ), );