material method
Widget
material({
- 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,
A piece of Material. Responsible for clipping, elevation, and ink effects.
If using to provide a splash surface, set type to MaterialType.transparency.
Implementation
Widget material({
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,
}) {
return Material(
key: key,
type: type,
elevation: elevation,
color: color,
shadowColor: shadowColor,
surfaceTintColor: surfaceTintColor,
textStyle: textStyle,
borderRadius: borderRadius,
shape: shape,
borderOnForeground: borderOnForeground,
clipBehavior: clipBehavior,
animationDuration: animationDuration,
child: this,
);
}