xButton method

Widget xButton(
  1. {double elavation,
  2. double rounded,
  3. double spreadRadius,
  4. Color color,
  5. Function onTap,
  6. double width,
  7. double height}
)

if u want elavation so pass value more tham 5

Implementation

Widget xButton(
    {double elavation,
    double rounded,
    double spreadRadius,
    Color color,
    Function onTap,
    double width,
    double height}) {
  return MaterialXButton(
      elavation: elavation,
      rounded: rounded,
      spreadRadius: spreadRadius,
      color: color,
      onTap: onTap,
      width: width,
      height: height,
      child: this);
}