MaterialType enum Null safety
The various kinds of material in Material Design. Used to configure the default behavior of Material widgets.
See also:
- Material, in particular Material.type.
- kMaterialEdges
Constructors
- MaterialType()
-
const
Values
- canvas → const MaterialType
-
Rectangle using default theme canvas color.
MaterialType()
- card → const MaterialType
-
Rounded edges, card theme color.
MaterialType()
- circle → const MaterialType
-
A circle, no color by default (used for floating action buttons).
MaterialType()
-
Rounded edges, no color by default (used for MaterialButton buttons).
MaterialType()
- transparency → const MaterialType
-
A transparent piece of material that draws ink splashes and highlights.
While the material metaphor describes child widgets as printed on the material itself and do not hide ink effects, in practice the Material widget draws child widgets on top of the ink effects. A Material with type transparency can be placed on top of opaque widgets to show ink effects on top of them.
Prefer using the Ink widget for showing ink effects on top of opaque widgets.
MaterialType()
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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<
MaterialType> -
A constant List of the values in this enum, in order of their declaration.
[canvas, card, circle, button, transparency]