myWidgetSubtree

Migrating buttons with custom colors

The following sections cover use of the following FlatButton,
RaisedButton, and OutlineButton color parameters:

textColor

disabledTextColor

color

disabledColor

focusColor

hoverColor

highlightColor

splashColor

The new button classes do not support a separate highlight color
because it’s no longer part of the Material Design.

Migrating buttons with custom foreground and background colors

Two common customizations for the original button classes are a custom
foreground color for FlatButton, or custom foreground and background
colors for RaisedButton.  Producing the same result with the new
button classes is simple:

FlatButton

textColor:

Colors

red

// foreground

onPressed: