style property

TextStyle style

The text style to use for text in the dropdown button and the dropdown menu that appears when you tap the button.

To use a separate text style for selected item when it's displayed within the dropdown button,, consider using selectedItemBuilder.

This sample shows a DropdownButton with a dropdown button text style that is different than its menu items.
List<String> options = <String>['One', 'Two', 'Free', 'Four'];
String dropdownValue = 'One';

Widget build(BuildContext context) {
  return Container(
    child: DropdownButton<String>(
      value: dropdownValue,
      onChanged: (String newValue) {
        setState(() {
          dropdownValue = newValue;
      style: TextStyle(color:,
      selectedItemBuilder: (BuildContext context) {
        return value) {
          return Text(
            style: TextStyle(color: Colors.white),
      items:<DropdownMenuItem<String>>((String value) {
        return DropdownMenuItem<String>(
          value: value,
          child: Text(value),

Defaults to the TextTheme.subhead value of the current ThemeData.textTheme of the current Theme.


final TextStyle style