title: Flutter - How to Change Dropdown Item List Size and Alignment
body: <p>I am using flutter <code>DropdownButton</code> for list out something and it worked well while selecting an option from the list the drop-down list appears full screen, I need to give some padding so that the user can cancel the list(hide).</p>
  <p><a href="https://i.stack.imgur.com/lWbN8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lWbN8.png" alt="Screen Shot of Problem" /></a></p>
  <p>The code:</p>
  <pre><code>ListView(children: &lt;Widget&gt;[
    ....
    Container(
        padding: EdgeInsets.all(5.0),
        decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(5.0),
          border: Border.all(
              color: Colors.grey,
              style: BorderStyle.solid,
              width: 0.80),
        ),
        alignment: Alignment.center,
        child: DropdownButtonHideUnderline(
            child: DropdownButton(
                isExpanded: true,
                hint: Text('Select Your Height'),
                icon: Icon(Icons.arrow_downward),
                iconSize: 20,
                iconEnabledColor: AppColors.PRIMARY_COLOR,
                items: _heights.map((dropDownHieghtItem) {
                  return DropdownMenuItem(
                      value:
                          dropDownHieghtItem['height_id'].toString(),
                      child: Text(dropDownHieghtItem['height_name']));
                }).toList(),
                onChanged: (String newselectedHieght) {
                  setState(() {
                    heightID = newselectedHieght.toString();
                  });
                },
                value: heightID)),
      ),......
  ]) 
  </code></pre>