title: Flutter Custom Title Dropdown (Material Page Filter)
body: <p>Following the concept of the app bar "page filter" I'd like to put a <code>DropdownButton</code> as the title of the <code>AppBar</code>. I tried, but it doesn't look good. </p>
  
  <p><a href="https://material.io/guidelines/layout/structure.html#structure-app-bar" rel="noreferrer">https://material.io/guidelines/layout/structure.html#structure-app-bar</a></p>
  
  <pre><code>class MyHomePage extends StatefulWidget {
    MyHomePage({Key key, this.title}) : super(key: key);
  
    final String title;
  
    @override
    _MyHomePageState createState() =&gt; new _MyHomePageState();
  }
  
  class _MyHomePageState extends State&lt;MyHomePage&gt; {
    String _value = 'one';
  
    @override
      void initState() {
        super.initState();
      }
  
    @override
    Widget build(BuildContext context) {
      return new Scaffold(
        appBar: new AppBar(
          title: new DropdownButton&lt;String&gt;(
            value: _value,
            items: &lt;DropdownMenuItem&lt;String&gt;&gt;[
              new DropdownMenuItem(
                child: new Text('one'),
                value: 'one',
              ),
              new DropdownMenuItem(
                child: new Text('two'),
                value: 'two'
              ),
            ], 
            onChanged: (String value) {
              setState(() =&gt; _value = value);
            },)
        ),
        body: new Center(
          child: new Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: &lt;Widget&gt;[
              new Text(
                'hello world',
              ),
            ],
          ),
        ),
      );
    }
  }
  </code></pre>
  
  <p>However it looks like: 
  <a href="https://i.stack.imgur.com/JGEUj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JGEUj.png" alt="ios simulator"></a></p>
  
  <p>which doesn't follow the material pattern found at the link stated above due to the weird looking underline... bonus: the text and button should be white. </p>