FlexSurface enum
Enum for using predefined surface branding strengths in FlexColorScheme based themes.
This enum was used in FlexColorScheme versions before 4.0.0 in factory constructors FlexColorScheme.light and FlexColorScheme.dark.
The properties using this enum are deprecated since version 4.2.0.
Migrate to using the enum FlexSurfaceMode
parameter surfaceMode
instead, that replaces surfaceStyle
and
offers more surface color blend modes and levels.
Constructors
- FlexSurface()
-
const
Values
- material → const FlexSurface
-
Use Material design default light and dark surface and background colors.
In light theme this is Colors.white and in dark theme it is Color(0xFF121212) for Theme colorsScheme.surface, colorScheme.background and all other background colors in ThemeData() used by Material.
- light → const FlexSurface
-
Use a light blend of primary color in surface and background colors.
- medium → const FlexSurface
-
Use a medium blend of primary color in surface and background colors.
- strong → const FlexSurface
-
Use a strong blend of primary color in surface and background colors.
- heavy → const FlexSurface
-
Use a heavy blend of primary color in surface and background colors.
- custom → const FlexSurface
-
Use your own custom surface surface and background colors.
If you set this option you can use it as a mode to indicate in your theme definition logic that you will provide the surface colors separately.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
FlexSurface> - A constant List of the values in this enum, in order of their declaration.