title: Flutter DropdownButton same color as parent Widgets
body: <p>I've been working on a toy reminders app and wish to implement a dropdown menu for the user to select a given time interval.</p>
  
  <p>I have the button loaded and can click on it with the correct menu popping up. The problem is the appearance of the button on the screen. It is the same color as the parent Widget and does not display the text of selected item at all.</p>
  
  <p>How can I get the dropdown button to have a white background and black text?</p>
  
  <p>Here is a screenshot:</p>
  
  <p><a href="https://i.stack.imgur.com/DRflA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DRflA.png" alt="Dropdown button color issue"></a></p>
  
  <p>And here is the code that builds this view:</p>
  
  <pre><code>@override
  Widget build(BuildContext context) {
  
  return new Container(
  
    child: new Row(
  
      children: &lt;Widget&gt;[
        new Expanded(
  
          child: new Column(
            crossAxisAlignment: CrossAxisAlignment.stretch,
            children: &lt;Widget&gt;[
  
              _buildInformationRow(),
              _buildReminderRow(),
  
            ],
          )
  
        )
      ],
  
    )
  
    );
   }
  
  Widget _buildInformationRow() {
  
  return new Container(
    padding: const EdgeInsets.all(10.0),
    child: new Row(
  
      children: &lt;Widget&gt;[
  
        new Column(
          children: &lt;Widget&gt;[
  
            new Container(
              padding: const EdgeInsets.all(10.0),
              child: new Text(
                "This app can remind you to do stuff\non a regular basis",
                  style: new TextStyle(
                    color: Colors.white,
                    fontSize: 18.0,
                  )
              ),
  
            )
  
          ],
        )
  
      ],
  
    ),
  
  );
  }
  
  Widget _buildReminderRow() {
  
  return new Container(
  
    child: new Row(
      mainAxisAlignment: MainAxisAlignment.spaceEvenly,
      children: &lt;Widget&gt;[
  
        new Column(
          children: &lt;Widget&gt;[
  
            new Container(
  
              child: new Text(
                  "Remind me",
                  style: new TextStyle(
                    color: Colors.white,
                    fontSize: 18.0,
                  )
              ),
  
            )
  
          ],
        ),
  
        new Column(
          children: &lt;Widget&gt;[
  
            new Container(
  
                child: new DropdownButton&lt;String&gt;(
                    style: new TextStyle(
                      color: Colors.black,
                      fontSize: 18.0,
                    ),
                    items: &lt;String&gt;["Never", "Daily", "Hourly", "Every 30 Minutes"].map((String value) {
                      return new DropdownMenuItem &lt;String&gt;(
                          value: value,
                          child: new Text(value)
                      );
                    }).toList(),
                    onChanged: null
                )
            )
  
          ],
        )
  
      ],
    ),
  
  );
  }
  </code></pre>