schemesWithCustom constant

Map<FlexScheme, FlexSchemeData> const schemesWithCustom

Returns a FlexScheme enum to FlexSchemeData constant map.

Contains all the pre-made ready to use dark and light FlexSchemeColor color values that can be used e.g. by FlexColorScheme. The FlexColor.schemesWithCustom also contain the standard default material design themes, both the normal and the newer high contrast version.

Each pre-made custom theme include hand-tuned light and dark modes colors for the theme it defines.

You can make your own color schemes as well. This list can serve as an example on how to define your own FlexSchemeData schemes that you can use instead.

Implementation

static const Map<FlexScheme, FlexSchemeData> schemesWithCustom =
    <FlexScheme, FlexSchemeData>{
  ...schemes,
  // This custom color set has same colors as the material default theme.
  // It is up to the implementation to provide custom colors or provide
  // other customization solution for this choice. Often an implementation
  // might allow users to copy a pre-made theme's colors as a starting point
  // to this enum theme choice and allow customizations of its colors with a
  // color picker.
  FlexScheme.custom: customColors,
};