title: DropdownButtonHideUnderline custom height
body: <p>I have a DropdownButtonHideUnderline in my AppBar.  I adjusted the color of its container to stand out from the AppBar.  I would also like to adjust its height to be less then the AppBar (small padding around the text):</p>
  
  <p><a href="https://i.stack.imgur.com/xx5jb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xx5jb.png" alt="enter image description here"></a></p>
  
  <p>Here is my code:</p>
  
  <pre class="lang-dart prettyprint-override"><code>@override
    Widget build(BuildContext context) { 
      if (widget.appState.isLoading)
        return Center(
          child: CircularProgressIndicator(),
        );
      else
        return DefaultTabController(
          length: 5,
          child: Scaffold(
            appBar: AppBar(
              title: Text("Home"),
              actions: &lt;Widget&gt;[
                DropdownButtonHideUnderline(
                  child: Container(
                    color: Colors.white,
                    child: DropdownButton(
                      isDense: true,
                      value: widget.appState.user.accountNumbers[widget.appState.selectedAccountIndex],
                      items: widget.appState.user.accountNumbers.map&lt;DropdownMenuItem&gt;((accountNumber) {
                        return DropdownMenuItem(                                            
                          child: Text(
                              accountNumber,
                              style: Theme.of(context).textTheme.caption,
                              ),
                          value: accountNumber,
                        );
                      }).toList(),
                      onChanged: (selectedItem) =&gt; setState((){
                        widget.appState.selectedAccountIndex = 
                          widget.appState.user.accountNumbers.indexOf(selectedItem);
                      }),
                    ),
                  ),
                ),
                IconButton(
                  ...
                ),
              ],
              bottom: TabBar(
                ...
              ),
            ),
            body: TabBarView(
                    ...
                  ),
          ),
        );
    }
  </code></pre>