Create a [ThemeData
] given a set of preferred values.
Default values will be derived for arguments that are omitted.
- The desired theme [
brightness
]. - The primary color palette (the [
primarySwatch
]), chosen from one of the swatches defined by the material design spec. This should be one of the maps from the [Colors
] class that do not have "accent" in their name. - The [
accentColor
], sometimes called the secondary color, and, if the accent color is specified, its brightness ([accentColorBrightness
]), so that the right contrasting text color will be used over the accent color.
See https://material.google.com/style/color.html for more discussion on how to pick the right colors.