MaterialType enum

The various kinds of material in Material Design. Used to configure the default behavior of Material widgets.

See also:

Inheritance

Values

canvas → const MaterialType

Rectangle using default theme canvas color.

card → const MaterialType

Rounded edges, card theme color.

circle → const MaterialType

A circle, no color by default (used for floating action buttons).

button → const MaterialType

Rounded edges, no color by default (used for MaterialButton buttons).

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.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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<MaterialType>
A constant List of the values in this enum, in order of their declaration.