FlatMaterial class
Inheritance
Available Extensions
Constructors
FlatMaterial ({Key ? key , MaterialType type = MaterialType.canvas , double elevation = 0.0 , Color ? color , Color ? shadowColor , Color ? surfaceTintColor , TextStyle ? textStyle , BorderRadiusGeometry ? borderRadius , ShapeBorder ? shape , bool borderOnForeground = true , Clip clipBehavior = Clip.none , Duration animationDuration = kThemeChangeDuration , required WidgetFunction of })
Flat version of Material widget allowing you to provide the widget
using a function for more convenient syntax.
Properties
animationDuration
→ Duration
Defines the duration of animated changes for shape , elevation ,
shadowColor , surfaceTintColor and the elevation overlay if it is applied.
final inherited
borderOnForeground
→ bool
Whether to paint the shape border in front of the child .
final inherited
borderRadius
→ BorderRadiusGeometry ?
If non-null, the corners of this box are rounded by this
BorderRadiusGeometry value.
final inherited
child
→ Widget ?
The widget below this widget in the tree.
final inherited
clipBehavior
→ Clip
The content will be clipped (or not) according to this option.
final inherited
color
→ Color ?
The color to paint the material.
final inherited
elevation
→ double
The z-coordinate at which to place this material relative to its parent.
final inherited
hashCode
→ int
The hash code for this object.
no setter inherited
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
shadowColor
→ Color ?
The color to paint the shadow below the material.
final inherited
shape
→ ShapeBorder ?
Defines the material's shape as well its shadow.
final inherited
surfaceTintColor
→ Color ?
The color of the surface tint overlay applied to the material color
to indicate elevation.
final inherited
textStyle
→ TextStyle ?
The typographical style to use for text within this material.
final inherited
type
→ MaterialType
The kind of material to show (e.g., card or canvas). This
affects the shape of the widget, the roundness of its corners if
the shape is rectangular, and the default color.
final inherited