How can we change the width/padding of a Flutter DropdownMenuItem in a Dropdown? : <p>In Flutter, I can build a Dropdown with DropdownMenuItems, like this:
<a href="https://i.stack.imgur.com/GnwfL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GnwfL.png" alt="enter image description here"></a></p>

<p>The DropdownMenuItems I add are always wider than the dropdown itself:</p>

<p><a href="https://i.stack.imgur.com/D5LI1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/D5LI1.png" alt="enter image description here"></a></p>

<p>How do you adjust the width of the DropdownMenuItem, or remove the extra horizontal padding?</p>

<p>My DropdownMenuItem widget looks like this:</p>

<pre><code>DropdownMenuItem(
    value: unit.name,
    child: Text('hey'),
);
</code></pre>

<p>while my Dropdown widget looks like this:</p>

<pre><code>return Container(
    width: 300.0,
    child: DropdownButtonHideUnderline(
      child: DropdownButton(
        value: name,
        items: listOfDropdownMenuItems,
        onChanged: onChanged,
        style: Theme.of(context).textTheme.title,
      ),
    ),
);
</code></pre>
