title: Flutter: How to set different colors for DropdownItems and for DropdownButton selected item?
body: <p>I have included <code>DropdownButton</code> in my project but I stucked with these problem.</p>
  
  <p>I have tried to use Theme on it but it also changes the both of colors. I can still change the background color of dropdown but I wanted it to be white with black text.</p>
  
  <p>Here you can see the <a href="https://imgur.com/a/cJ9Kf65" rel="noreferrer">screens</a>, the dropdown is white because text color is also white</p>
  
  <pre><code>AccentColorOverride(
    child: Theme(
      data: ThemeData(
          hintColor: Colors.white,
          selectedRowColor: Colors.white),
      child: DropdownButton&lt;String&gt;(
        value: selectedRegion,
        hint: Text(hint_label_region, style: white18),
        isExpanded: true,
        underline: Container(
          height: 1.0,
          decoration: const BoxDecoration(
              border: Border(
                  bottom: BorderSide(
                      color: Color(0xFFBDBDBD),
                      width: 2))),
        ),
        items: &lt;String&gt;[
          'A',
          'B',
          'C',
          'D'
        ].map&lt;DropdownMenuItem&lt;String&gt;&gt;((String value) {
          return DropdownMenuItem&lt;String&gt;(
            value: value,
            child: new Text(
              value,
              style: TextStyle(color: Colors.white),
            ),
          );
        }).toList(),
        onChanged: (String newValue) {
          setState(() {
            selectedRegion = newValue;
          });
        },
      ),
    ),
  )
  </code></pre>