xMaterial method

Widget xMaterial(
  1. {Key key,
  2. MaterialType type = MaterialType.canvas,
  3. double elevation = 0.0,
  4. Color color,
  5. Color shadowColor = const Color(0xFF000000),
  6. TextStyle textStyle,
  7. BorderRadiusGeometry borderRadius,
  8. ShapeBorder shape,
  9. bool borderOnForeground = true,
  10. Clip clipBehavior = Clip.none,
  11. Duration animationDuration = kThemeChangeDuration}
)

Implementation

Widget xMaterial({
  Key key,
  MaterialType type = MaterialType.canvas,
  double elevation = 0.0,
  Color color,
  Color shadowColor = const Color(0xFF000000),
  TextStyle textStyle,
  BorderRadiusGeometry borderRadius,
  ShapeBorder shape,
  bool borderOnForeground = true,
  Clip clipBehavior = Clip.none,
  Duration animationDuration = kThemeChangeDuration,
}) {
  return Material(
    type: type,
    animationDuration: animationDuration,
    borderOnForeground: borderOnForeground,
    borderRadius: borderRadius,
    clipBehavior: clipBehavior,
    color: color,
    elevation: elevation,
    key: key,
    shadowColor: shadowColor,
    shape: shape,
    textStyle: textStyle,
    child: this,
  );
}